This commit is contained in:
2024-05-11 23:24:13 +02:00
commit e66c5afde0
130 changed files with 17039 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
package razorhud
import "core:c"
import sce "../common"
foreign import razorhud "system:SceRazorHud_stub"
@(link_prefix = "sceRazorGpuLive")
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.
*/
SetMetricsGroup :: proc(metrics: c.uint32_t) -> c.int ---
/**
* 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.
*/
SetBuffer :: proc(buffer: rawptr, buf_size: sce.Size, results: ^SceRazorGpuLiveResultInfo) -> c.int ---
/**
* Starts gpu live debugging
*
* @return 0, <0 on error.
*/
Start :: proc() -> c.int ---
/**
* Stops gpu live debugging
*
* @return 0, <0 on error.
*/
Stop :: proc() -> c.int ---
}