2024-05-11 23:24:13 +02:00
|
|
|
package razorhud
|
|
|
|
|
|
|
|
|
|
import "core:c"
|
|
|
|
|
import sce "../common"
|
|
|
|
|
|
|
|
|
|
foreign import razorhud "system:SceRazorHud_stub"
|
|
|
|
|
|
|
|
|
|
foreign razorhud {
|
|
|
|
|
/**
|
|
|
|
|
* Sets a metrics group to use for gpu live debugging
|
|
|
|
|
*
|
|
|
|
|
* @param[in] metrics - The metrics group to use (One of ::SceRazorGpuLiveMetricsGroup)
|
|
|
|
|
*
|
|
|
|
|
* @return 0, <0 on error.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
sceRazorGpuLiveSetMetricsGroup :: proc(metrics: c.uint32_t) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the buffer in which to store gpu live debugging results for the current frame
|
|
|
|
|
*
|
|
|
|
|
* @param[in] buffer - The buffer to use
|
|
|
|
|
* @param[in] buf_size - The buffer size in bytes
|
|
|
|
|
* @param[out] results - The debugging results of the previous frame
|
|
|
|
|
*
|
|
|
|
|
* @return 0, <0 on error.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
sceRazorGpuLiveSetBuffer :: proc(buffer: rawptr, buf_size: sce.Size, results: ^SceRazorGpuLiveResultInfo) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Starts gpu live debugging
|
|
|
|
|
*
|
|
|
|
|
* @return 0, <0 on error.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
sceRazorGpuLiveStart :: proc() -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Stops gpu live debugging
|
|
|
|
|
*
|
|
|
|
|
* @return 0, <0 on error.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
sceRazorGpuLiveStop :: proc() -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
}
|