Created
August 4, 2020 15:58
-
-
Save floooh/1979f57fca70b8ea2269164e66e058c0 to your computer and use it in GitHub Desktop.
sokol_gfx.h public API JSON description generated from clang ast-dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"module": "sokol_gfx", | |
"prefix": "sg_", | |
"decls": [ | |
{ | |
"kind": "struct", | |
"name": "sg_buffer", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_image", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pipeline", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pass", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_context", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "consts", | |
"items": [ | |
{ | |
"name": "SG_INVALID_ID", | |
"value": "0" | |
}, | |
{ | |
"name": "SG_NUM_SHADER_STAGES", | |
"value": "2" | |
}, | |
{ | |
"name": "SG_NUM_INFLIGHT_FRAMES", | |
"value": "2" | |
}, | |
{ | |
"name": "SG_MAX_COLOR_ATTACHMENTS", | |
"value": "4" | |
}, | |
{ | |
"name": "SG_MAX_SHADERSTAGE_BUFFERS", | |
"value": "8" | |
}, | |
{ | |
"name": "SG_MAX_SHADERSTAGE_IMAGES", | |
"value": "12" | |
}, | |
{ | |
"name": "SG_MAX_SHADERSTAGE_UBS", | |
"value": "4" | |
}, | |
{ | |
"name": "SG_MAX_UB_MEMBERS", | |
"value": "16" | |
}, | |
{ | |
"name": "SG_MAX_VERTEX_ATTRIBUTES", | |
"value": "16" | |
}, | |
{ | |
"name": "SG_MAX_MIPMAPS", | |
"value": "16" | |
}, | |
{ | |
"name": "SG_MAX_TEXTUREARRAY_LAYERS", | |
"value": "128" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_backend", | |
"items": [ | |
{ | |
"name": "SG_BACKEND_GLCORE33" | |
}, | |
{ | |
"name": "SG_BACKEND_GLES2" | |
}, | |
{ | |
"name": "SG_BACKEND_GLES3" | |
}, | |
{ | |
"name": "SG_BACKEND_D3D11" | |
}, | |
{ | |
"name": "SG_BACKEND_METAL_IOS" | |
}, | |
{ | |
"name": "SG_BACKEND_METAL_MACOS" | |
}, | |
{ | |
"name": "SG_BACKEND_METAL_SIMULATOR" | |
}, | |
{ | |
"name": "SG_BACKEND_WGPU" | |
}, | |
{ | |
"name": "SG_BACKEND_DUMMY" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_pixel_format", | |
"items": [ | |
{ | |
"name": "_SG_PIXELFORMAT_DEFAULT" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_NONE" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R8" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R8SN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R8UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R8SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R16" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R16SN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R16UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R16SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R16F" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG8" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG8SN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG8UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG8SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R32UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R32SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_R32F" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG16" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG16SN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG16UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG16SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG16F" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA8" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA8SN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA8UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA8SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BGRA8" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGB10A2" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG11B10F" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG32UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG32SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RG32F" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA16" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA16SN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA16UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA16SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA16F" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA32UI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA32SI" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_RGBA32F" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_DEPTH" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_DEPTH_STENCIL" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC1_RGBA" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC2_RGBA" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC3_RGBA" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC4_R" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC4_RSN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC5_RG" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC5_RGSN" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC6H_RGBF" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC6H_RGBUF" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_BC7_RGBA" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_PVRTC_RGB_2BPP" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_PVRTC_RGB_4BPP" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_PVRTC_RGBA_2BPP" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_PVRTC_RGBA_4BPP" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_ETC2_RGB8" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_ETC2_RGB8A1" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_ETC2_RGBA8" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_ETC2_RG11" | |
}, | |
{ | |
"name": "SG_PIXELFORMAT_ETC2_RG11SN" | |
}, | |
{ | |
"name": "_SG_PIXELFORMAT_NUM" | |
}, | |
{ | |
"name": "_SG_PIXELFORMAT_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pixelformat_info", | |
"fields": [ | |
{ | |
"name": "sample", | |
"type": "bool" | |
}, | |
{ | |
"name": "filter", | |
"type": "bool" | |
}, | |
{ | |
"name": "render", | |
"type": "bool" | |
}, | |
{ | |
"name": "blend", | |
"type": "bool" | |
}, | |
{ | |
"name": "msaa", | |
"type": "bool" | |
}, | |
{ | |
"name": "depth", | |
"type": "bool" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_features", | |
"fields": [ | |
{ | |
"name": "instancing", | |
"type": "bool" | |
}, | |
{ | |
"name": "origin_top_left", | |
"type": "bool" | |
}, | |
{ | |
"name": "multiple_render_targets", | |
"type": "bool" | |
}, | |
{ | |
"name": "msaa_render_targets", | |
"type": "bool" | |
}, | |
{ | |
"name": "imagetype_3d", | |
"type": "bool" | |
}, | |
{ | |
"name": "imagetype_array", | |
"type": "bool" | |
}, | |
{ | |
"name": "image_clamp_to_border", | |
"type": "bool" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_limits", | |
"fields": [ | |
{ | |
"name": "max_image_size_2d", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "max_image_size_cube", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "max_image_size_3d", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "max_image_size_array", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "max_image_array_layers", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "max_vertex_attrs", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_resource_state", | |
"items": [ | |
{ | |
"name": "SG_RESOURCESTATE_INITIAL" | |
}, | |
{ | |
"name": "SG_RESOURCESTATE_ALLOC" | |
}, | |
{ | |
"name": "SG_RESOURCESTATE_VALID" | |
}, | |
{ | |
"name": "SG_RESOURCESTATE_FAILED" | |
}, | |
{ | |
"name": "SG_RESOURCESTATE_INVALID" | |
}, | |
{ | |
"name": "_SG_RESOURCESTATE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_usage", | |
"items": [ | |
{ | |
"name": "_SG_USAGE_DEFAULT" | |
}, | |
{ | |
"name": "SG_USAGE_IMMUTABLE" | |
}, | |
{ | |
"name": "SG_USAGE_DYNAMIC" | |
}, | |
{ | |
"name": "SG_USAGE_STREAM" | |
}, | |
{ | |
"name": "_SG_USAGE_NUM" | |
}, | |
{ | |
"name": "_SG_USAGE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_buffer_type", | |
"items": [ | |
{ | |
"name": "_SG_BUFFERTYPE_DEFAULT" | |
}, | |
{ | |
"name": "SG_BUFFERTYPE_VERTEXBUFFER" | |
}, | |
{ | |
"name": "SG_BUFFERTYPE_INDEXBUFFER" | |
}, | |
{ | |
"name": "_SG_BUFFERTYPE_NUM" | |
}, | |
{ | |
"name": "_SG_BUFFERTYPE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_index_type", | |
"items": [ | |
{ | |
"name": "_SG_INDEXTYPE_DEFAULT" | |
}, | |
{ | |
"name": "SG_INDEXTYPE_NONE" | |
}, | |
{ | |
"name": "SG_INDEXTYPE_UINT16" | |
}, | |
{ | |
"name": "SG_INDEXTYPE_UINT32" | |
}, | |
{ | |
"name": "_SG_INDEXTYPE_NUM" | |
}, | |
{ | |
"name": "_SG_INDEXTYPE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_image_type", | |
"items": [ | |
{ | |
"name": "_SG_IMAGETYPE_DEFAULT" | |
}, | |
{ | |
"name": "SG_IMAGETYPE_2D" | |
}, | |
{ | |
"name": "SG_IMAGETYPE_CUBE" | |
}, | |
{ | |
"name": "SG_IMAGETYPE_3D" | |
}, | |
{ | |
"name": "SG_IMAGETYPE_ARRAY" | |
}, | |
{ | |
"name": "_SG_IMAGETYPE_NUM" | |
}, | |
{ | |
"name": "_SG_IMAGETYPE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_sampler_type", | |
"items": [ | |
{ | |
"name": "_SG_SAMPLERTYPE_DEFAULT" | |
}, | |
{ | |
"name": "SG_SAMPLERTYPE_FLOAT" | |
}, | |
{ | |
"name": "SG_SAMPLERTYPE_SINT" | |
}, | |
{ | |
"name": "SG_SAMPLERTYPE_UINT" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_cube_face", | |
"items": [ | |
{ | |
"name": "SG_CUBEFACE_POS_X" | |
}, | |
{ | |
"name": "SG_CUBEFACE_NEG_X" | |
}, | |
{ | |
"name": "SG_CUBEFACE_POS_Y" | |
}, | |
{ | |
"name": "SG_CUBEFACE_NEG_Y" | |
}, | |
{ | |
"name": "SG_CUBEFACE_POS_Z" | |
}, | |
{ | |
"name": "SG_CUBEFACE_NEG_Z" | |
}, | |
{ | |
"name": "SG_CUBEFACE_NUM" | |
}, | |
{ | |
"name": "_SG_CUBEFACE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_shader_stage", | |
"items": [ | |
{ | |
"name": "SG_SHADERSTAGE_VS" | |
}, | |
{ | |
"name": "SG_SHADERSTAGE_FS" | |
}, | |
{ | |
"name": "_SG_SHADERSTAGE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_primitive_type", | |
"items": [ | |
{ | |
"name": "_SG_PRIMITIVETYPE_DEFAULT" | |
}, | |
{ | |
"name": "SG_PRIMITIVETYPE_POINTS" | |
}, | |
{ | |
"name": "SG_PRIMITIVETYPE_LINES" | |
}, | |
{ | |
"name": "SG_PRIMITIVETYPE_LINE_STRIP" | |
}, | |
{ | |
"name": "SG_PRIMITIVETYPE_TRIANGLES" | |
}, | |
{ | |
"name": "SG_PRIMITIVETYPE_TRIANGLE_STRIP" | |
}, | |
{ | |
"name": "_SG_PRIMITIVETYPE_NUM" | |
}, | |
{ | |
"name": "_SG_PRIMITIVETYPE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_filter", | |
"items": [ | |
{ | |
"name": "_SG_FILTER_DEFAULT" | |
}, | |
{ | |
"name": "SG_FILTER_NEAREST" | |
}, | |
{ | |
"name": "SG_FILTER_LINEAR" | |
}, | |
{ | |
"name": "SG_FILTER_NEAREST_MIPMAP_NEAREST" | |
}, | |
{ | |
"name": "SG_FILTER_NEAREST_MIPMAP_LINEAR" | |
}, | |
{ | |
"name": "SG_FILTER_LINEAR_MIPMAP_NEAREST" | |
}, | |
{ | |
"name": "SG_FILTER_LINEAR_MIPMAP_LINEAR" | |
}, | |
{ | |
"name": "_SG_FILTER_NUM" | |
}, | |
{ | |
"name": "_SG_FILTER_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_wrap", | |
"items": [ | |
{ | |
"name": "_SG_WRAP_DEFAULT" | |
}, | |
{ | |
"name": "SG_WRAP_REPEAT" | |
}, | |
{ | |
"name": "SG_WRAP_CLAMP_TO_EDGE" | |
}, | |
{ | |
"name": "SG_WRAP_CLAMP_TO_BORDER" | |
}, | |
{ | |
"name": "SG_WRAP_MIRRORED_REPEAT" | |
}, | |
{ | |
"name": "_SG_WRAP_NUM" | |
}, | |
{ | |
"name": "_SG_WRAP_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_border_color", | |
"items": [ | |
{ | |
"name": "_SG_BORDERCOLOR_DEFAULT" | |
}, | |
{ | |
"name": "SG_BORDERCOLOR_TRANSPARENT_BLACK" | |
}, | |
{ | |
"name": "SG_BORDERCOLOR_OPAQUE_BLACK" | |
}, | |
{ | |
"name": "SG_BORDERCOLOR_OPAQUE_WHITE" | |
}, | |
{ | |
"name": "_SG_BORDERCOLOR_NUM" | |
}, | |
{ | |
"name": "_SG_BORDERCOLOR_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_vertex_format", | |
"items": [ | |
{ | |
"name": "SG_VERTEXFORMAT_INVALID" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_FLOAT" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_FLOAT2" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_FLOAT3" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_FLOAT4" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_BYTE4" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_BYTE4N" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_UBYTE4" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_UBYTE4N" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_SHORT2" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_SHORT2N" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_USHORT2N" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_SHORT4" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_SHORT4N" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_USHORT4N" | |
}, | |
{ | |
"name": "SG_VERTEXFORMAT_UINT10_N2" | |
}, | |
{ | |
"name": "_SG_VERTEXFORMAT_NUM" | |
}, | |
{ | |
"name": "_SG_VERTEXFORMAT_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_vertex_step", | |
"items": [ | |
{ | |
"name": "_SG_VERTEXSTEP_DEFAULT" | |
}, | |
{ | |
"name": "SG_VERTEXSTEP_PER_VERTEX" | |
}, | |
{ | |
"name": "SG_VERTEXSTEP_PER_INSTANCE" | |
}, | |
{ | |
"name": "_SG_VERTEXSTEP_NUM" | |
}, | |
{ | |
"name": "_SG_VERTEXSTEP_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_uniform_type", | |
"items": [ | |
{ | |
"name": "SG_UNIFORMTYPE_INVALID" | |
}, | |
{ | |
"name": "SG_UNIFORMTYPE_FLOAT" | |
}, | |
{ | |
"name": "SG_UNIFORMTYPE_FLOAT2" | |
}, | |
{ | |
"name": "SG_UNIFORMTYPE_FLOAT3" | |
}, | |
{ | |
"name": "SG_UNIFORMTYPE_FLOAT4" | |
}, | |
{ | |
"name": "SG_UNIFORMTYPE_MAT4" | |
}, | |
{ | |
"name": "_SG_UNIFORMTYPE_NUM" | |
}, | |
{ | |
"name": "_SG_UNIFORMTYPE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_cull_mode", | |
"items": [ | |
{ | |
"name": "_SG_CULLMODE_DEFAULT" | |
}, | |
{ | |
"name": "SG_CULLMODE_NONE" | |
}, | |
{ | |
"name": "SG_CULLMODE_FRONT" | |
}, | |
{ | |
"name": "SG_CULLMODE_BACK" | |
}, | |
{ | |
"name": "_SG_CULLMODE_NUM" | |
}, | |
{ | |
"name": "_SG_CULLMODE_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_face_winding", | |
"items": [ | |
{ | |
"name": "_SG_FACEWINDING_DEFAULT" | |
}, | |
{ | |
"name": "SG_FACEWINDING_CCW" | |
}, | |
{ | |
"name": "SG_FACEWINDING_CW" | |
}, | |
{ | |
"name": "_SG_FACEWINDING_NUM" | |
}, | |
{ | |
"name": "_SG_FACEWINDING_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_compare_func", | |
"items": [ | |
{ | |
"name": "_SG_COMPAREFUNC_DEFAULT" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_NEVER" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_LESS" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_EQUAL" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_LESS_EQUAL" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_GREATER" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_NOT_EQUAL" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_GREATER_EQUAL" | |
}, | |
{ | |
"name": "SG_COMPAREFUNC_ALWAYS" | |
}, | |
{ | |
"name": "_SG_COMPAREFUNC_NUM" | |
}, | |
{ | |
"name": "_SG_COMPAREFUNC_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_stencil_op", | |
"items": [ | |
{ | |
"name": "_SG_STENCILOP_DEFAULT" | |
}, | |
{ | |
"name": "SG_STENCILOP_KEEP" | |
}, | |
{ | |
"name": "SG_STENCILOP_ZERO" | |
}, | |
{ | |
"name": "SG_STENCILOP_REPLACE" | |
}, | |
{ | |
"name": "SG_STENCILOP_INCR_CLAMP" | |
}, | |
{ | |
"name": "SG_STENCILOP_DECR_CLAMP" | |
}, | |
{ | |
"name": "SG_STENCILOP_INVERT" | |
}, | |
{ | |
"name": "SG_STENCILOP_INCR_WRAP" | |
}, | |
{ | |
"name": "SG_STENCILOP_DECR_WRAP" | |
}, | |
{ | |
"name": "_SG_STENCILOP_NUM" | |
}, | |
{ | |
"name": "_SG_STENCILOP_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_blend_factor", | |
"items": [ | |
{ | |
"name": "_SG_BLENDFACTOR_DEFAULT" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ZERO" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ONE" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_SRC_COLOR" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ONE_MINUS_SRC_COLOR" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_SRC_ALPHA" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_DST_COLOR" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ONE_MINUS_DST_COLOR" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_DST_ALPHA" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ONE_MINUS_DST_ALPHA" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_SRC_ALPHA_SATURATED" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_BLEND_COLOR" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ONE_MINUS_BLEND_COLOR" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_BLEND_ALPHA" | |
}, | |
{ | |
"name": "SG_BLENDFACTOR_ONE_MINUS_BLEND_ALPHA" | |
}, | |
{ | |
"name": "_SG_BLENDFACTOR_NUM" | |
}, | |
{ | |
"name": "_SG_BLENDFACTOR_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_blend_op", | |
"items": [ | |
{ | |
"name": "_SG_BLENDOP_DEFAULT" | |
}, | |
{ | |
"name": "SG_BLENDOP_ADD" | |
}, | |
{ | |
"name": "SG_BLENDOP_SUBTRACT" | |
}, | |
{ | |
"name": "SG_BLENDOP_REVERSE_SUBTRACT" | |
}, | |
{ | |
"name": "_SG_BLENDOP_NUM" | |
}, | |
{ | |
"name": "_SG_BLENDOP_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_color_mask", | |
"items": [ | |
{ | |
"name": "_SG_COLORMASK_DEFAULT", | |
"value": "0" | |
}, | |
{ | |
"name": "SG_COLORMASK_NONE", | |
"value": "16" | |
}, | |
{ | |
"name": "SG_COLORMASK_R", | |
"value": "1" | |
}, | |
{ | |
"name": "SG_COLORMASK_G", | |
"value": "2" | |
}, | |
{ | |
"name": "SG_COLORMASK_B", | |
"value": "4" | |
}, | |
{ | |
"name": "SG_COLORMASK_A", | |
"value": "8" | |
}, | |
{ | |
"name": "SG_COLORMASK_RGB", | |
"value": "7" | |
}, | |
{ | |
"name": "SG_COLORMASK_RGBA", | |
"value": "15" | |
}, | |
{ | |
"name": "_SG_COLORMASK_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "enum", | |
"name": "sg_action", | |
"items": [ | |
{ | |
"name": "_SG_ACTION_DEFAULT" | |
}, | |
{ | |
"name": "SG_ACTION_CLEAR" | |
}, | |
{ | |
"name": "SG_ACTION_LOAD" | |
}, | |
{ | |
"name": "SG_ACTION_DONTCARE" | |
}, | |
{ | |
"name": "_SG_ACTION_NUM" | |
}, | |
{ | |
"name": "_SG_ACTION_FORCE_U32", | |
"value": "2147483647" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_color_attachment_action", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "sg_action" | |
}, | |
{ | |
"name": "val", | |
"type": "float [4]" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_depth_attachment_action", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "sg_action" | |
}, | |
{ | |
"name": "val", | |
"type": "float" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_stencil_attachment_action", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "sg_action" | |
}, | |
{ | |
"name": "val", | |
"type": "uint8_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pass_action", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "colors", | |
"type": "sg_color_attachment_action [4]" | |
}, | |
{ | |
"name": "depth", | |
"type": "sg_depth_attachment_action" | |
}, | |
{ | |
"name": "stencil", | |
"type": "sg_stencil_attachment_action" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_bindings", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "vertex_buffers", | |
"type": "sg_buffer [8]" | |
}, | |
{ | |
"name": "vertex_buffer_offsets", | |
"type": "int [8]" | |
}, | |
{ | |
"name": "index_buffer", | |
"type": "sg_buffer" | |
}, | |
{ | |
"name": "index_buffer_offset", | |
"type": "int" | |
}, | |
{ | |
"name": "vs_images", | |
"type": "sg_image [12]" | |
}, | |
{ | |
"name": "fs_images", | |
"type": "sg_image [12]" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_buffer_desc", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "size", | |
"type": "int" | |
}, | |
{ | |
"name": "type", | |
"type": "sg_buffer_type" | |
}, | |
{ | |
"name": "usage", | |
"type": "sg_usage" | |
}, | |
{ | |
"name": "content", | |
"type": "const void *" | |
}, | |
{ | |
"name": "label", | |
"type": "const char *" | |
}, | |
{ | |
"name": "gl_buffers", | |
"type": "uint32_t [2]" | |
}, | |
{ | |
"name": "mtl_buffers", | |
"type": "const void *[2]" | |
}, | |
{ | |
"name": "d3d11_buffer", | |
"type": "const void *" | |
}, | |
{ | |
"name": "wgpu_buffer", | |
"type": "const void *" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_subimage_content", | |
"fields": [ | |
{ | |
"name": "ptr", | |
"type": "const void *" | |
}, | |
{ | |
"name": "size", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_image_content", | |
"fields": [ | |
{ | |
"name": "subimage", | |
"type": "sg_subimage_content [6][16]" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_image_desc", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "type", | |
"type": "sg_image_type" | |
}, | |
{ | |
"name": "render_target", | |
"type": "bool" | |
}, | |
{ | |
"name": "width", | |
"type": "int" | |
}, | |
{ | |
"name": "height", | |
"type": "int" | |
}, | |
{ | |
"name": "depth", | |
"type": "int" | |
}, | |
{ | |
"name": "num_layers", | |
"type": "int" | |
}, | |
{ | |
"name": "num_mipmaps", | |
"type": "int" | |
}, | |
{ | |
"name": "usage", | |
"type": "sg_usage" | |
}, | |
{ | |
"name": "pixel_format", | |
"type": "sg_pixel_format" | |
}, | |
{ | |
"name": "sample_count", | |
"type": "int" | |
}, | |
{ | |
"name": "min_filter", | |
"type": "sg_filter" | |
}, | |
{ | |
"name": "mag_filter", | |
"type": "sg_filter" | |
}, | |
{ | |
"name": "wrap_u", | |
"type": "sg_wrap" | |
}, | |
{ | |
"name": "wrap_v", | |
"type": "sg_wrap" | |
}, | |
{ | |
"name": "wrap_w", | |
"type": "sg_wrap" | |
}, | |
{ | |
"name": "border_color", | |
"type": "sg_border_color" | |
}, | |
{ | |
"name": "max_anisotropy", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "min_lod", | |
"type": "float" | |
}, | |
{ | |
"name": "max_lod", | |
"type": "float" | |
}, | |
{ | |
"name": "content", | |
"type": "sg_image_content" | |
}, | |
{ | |
"name": "label", | |
"type": "const char *" | |
}, | |
{ | |
"name": "gl_textures", | |
"type": "uint32_t [2]" | |
}, | |
{ | |
"name": "mtl_textures", | |
"type": "const void *[2]" | |
}, | |
{ | |
"name": "d3d11_texture", | |
"type": "const void *" | |
}, | |
{ | |
"name": "wgpu_texture", | |
"type": "const void *" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader_attr_desc", | |
"fields": [ | |
{ | |
"name": "name", | |
"type": "const char *" | |
}, | |
{ | |
"name": "sem_name", | |
"type": "const char *" | |
}, | |
{ | |
"name": "sem_index", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader_uniform_desc", | |
"fields": [ | |
{ | |
"name": "name", | |
"type": "const char *" | |
}, | |
{ | |
"name": "type", | |
"type": "sg_uniform_type" | |
}, | |
{ | |
"name": "array_count", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader_uniform_block_desc", | |
"fields": [ | |
{ | |
"name": "size", | |
"type": "int" | |
}, | |
{ | |
"name": "uniforms", | |
"type": "sg_shader_uniform_desc [16]" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader_image_desc", | |
"fields": [ | |
{ | |
"name": "name", | |
"type": "const char *" | |
}, | |
{ | |
"name": "type", | |
"type": "sg_image_type" | |
}, | |
{ | |
"name": "sampler_type", | |
"type": "sg_sampler_type" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader_stage_desc", | |
"fields": [ | |
{ | |
"name": "source", | |
"type": "const char *" | |
}, | |
{ | |
"name": "byte_code", | |
"type": "const uint8_t *" | |
}, | |
{ | |
"name": "byte_code_size", | |
"type": "int" | |
}, | |
{ | |
"name": "entry", | |
"type": "const char *" | |
}, | |
{ | |
"name": "d3d11_target", | |
"type": "const char *" | |
}, | |
{ | |
"name": "uniform_blocks", | |
"type": "sg_shader_uniform_block_desc [4]" | |
}, | |
{ | |
"name": "images", | |
"type": "sg_shader_image_desc [12]" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader_desc", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "attrs", | |
"type": "sg_shader_attr_desc [16]" | |
}, | |
{ | |
"name": "vs", | |
"type": "sg_shader_stage_desc" | |
}, | |
{ | |
"name": "fs", | |
"type": "sg_shader_stage_desc" | |
}, | |
{ | |
"name": "label", | |
"type": "const char *" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_buffer_layout_desc", | |
"fields": [ | |
{ | |
"name": "stride", | |
"type": "int" | |
}, | |
{ | |
"name": "step_func", | |
"type": "sg_vertex_step" | |
}, | |
{ | |
"name": "step_rate", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_vertex_attr_desc", | |
"fields": [ | |
{ | |
"name": "buffer_index", | |
"type": "int" | |
}, | |
{ | |
"name": "offset", | |
"type": "int" | |
}, | |
{ | |
"name": "format", | |
"type": "sg_vertex_format" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_layout_desc", | |
"fields": [ | |
{ | |
"name": "buffers", | |
"type": "sg_buffer_layout_desc [8]" | |
}, | |
{ | |
"name": "attrs", | |
"type": "sg_vertex_attr_desc [16]" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_stencil_state", | |
"fields": [ | |
{ | |
"name": "fail_op", | |
"type": "sg_stencil_op" | |
}, | |
{ | |
"name": "depth_fail_op", | |
"type": "sg_stencil_op" | |
}, | |
{ | |
"name": "pass_op", | |
"type": "sg_stencil_op" | |
}, | |
{ | |
"name": "compare_func", | |
"type": "sg_compare_func" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_depth_stencil_state", | |
"fields": [ | |
{ | |
"name": "stencil_front", | |
"type": "sg_stencil_state" | |
}, | |
{ | |
"name": "stencil_back", | |
"type": "sg_stencil_state" | |
}, | |
{ | |
"name": "depth_compare_func", | |
"type": "sg_compare_func" | |
}, | |
{ | |
"name": "depth_write_enabled", | |
"type": "bool" | |
}, | |
{ | |
"name": "stencil_enabled", | |
"type": "bool" | |
}, | |
{ | |
"name": "stencil_read_mask", | |
"type": "uint8_t" | |
}, | |
{ | |
"name": "stencil_write_mask", | |
"type": "uint8_t" | |
}, | |
{ | |
"name": "stencil_ref", | |
"type": "uint8_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_blend_state", | |
"fields": [ | |
{ | |
"name": "enabled", | |
"type": "bool" | |
}, | |
{ | |
"name": "src_factor_rgb", | |
"type": "sg_blend_factor" | |
}, | |
{ | |
"name": "dst_factor_rgb", | |
"type": "sg_blend_factor" | |
}, | |
{ | |
"name": "op_rgb", | |
"type": "sg_blend_op" | |
}, | |
{ | |
"name": "src_factor_alpha", | |
"type": "sg_blend_factor" | |
}, | |
{ | |
"name": "dst_factor_alpha", | |
"type": "sg_blend_factor" | |
}, | |
{ | |
"name": "op_alpha", | |
"type": "sg_blend_op" | |
}, | |
{ | |
"name": "color_write_mask", | |
"type": "uint8_t" | |
}, | |
{ | |
"name": "color_attachment_count", | |
"type": "int" | |
}, | |
{ | |
"name": "color_format", | |
"type": "sg_pixel_format" | |
}, | |
{ | |
"name": "depth_format", | |
"type": "sg_pixel_format" | |
}, | |
{ | |
"name": "blend_color", | |
"type": "float [4]" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_rasterizer_state", | |
"fields": [ | |
{ | |
"name": "alpha_to_coverage_enabled", | |
"type": "bool" | |
}, | |
{ | |
"name": "cull_mode", | |
"type": "sg_cull_mode" | |
}, | |
{ | |
"name": "face_winding", | |
"type": "sg_face_winding" | |
}, | |
{ | |
"name": "sample_count", | |
"type": "int" | |
}, | |
{ | |
"name": "depth_bias", | |
"type": "float" | |
}, | |
{ | |
"name": "depth_bias_slope_scale", | |
"type": "float" | |
}, | |
{ | |
"name": "depth_bias_clamp", | |
"type": "float" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pipeline_desc", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "layout", | |
"type": "sg_layout_desc" | |
}, | |
{ | |
"name": "shader", | |
"type": "sg_shader" | |
}, | |
{ | |
"name": "primitive_type", | |
"type": "sg_primitive_type" | |
}, | |
{ | |
"name": "index_type", | |
"type": "sg_index_type" | |
}, | |
{ | |
"name": "depth_stencil", | |
"type": "sg_depth_stencil_state" | |
}, | |
{ | |
"name": "blend", | |
"type": "sg_blend_state" | |
}, | |
{ | |
"name": "rasterizer", | |
"type": "sg_rasterizer_state" | |
}, | |
{ | |
"name": "label", | |
"type": "const char *" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_attachment_desc", | |
"fields": [ | |
{ | |
"name": "image", | |
"type": "sg_image" | |
}, | |
{ | |
"name": "mip_level", | |
"type": "int" | |
}, | |
{ | |
"name": "face_layer_slice", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pass_desc", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "color_attachments", | |
"type": "sg_attachment_desc [4]" | |
}, | |
{ | |
"name": "depth_stencil_attachment", | |
"type": "sg_attachment_desc" | |
}, | |
{ | |
"name": "label", | |
"type": "const char *" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_trace_hooks", | |
"fields": [ | |
{ | |
"name": "user_data", | |
"type": "void *" | |
}, | |
{ | |
"name": "reset_state_cache", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "make_buffer", | |
"type": "void (*)(const sg_buffer_desc *, sg_buffer, void *)" | |
}, | |
{ | |
"name": "make_image", | |
"type": "void (*)(const sg_image_desc *, sg_image, void *)" | |
}, | |
{ | |
"name": "make_shader", | |
"type": "void (*)(const sg_shader_desc *, sg_shader, void *)" | |
}, | |
{ | |
"name": "make_pipeline", | |
"type": "void (*)(const sg_pipeline_desc *, sg_pipeline, void *)" | |
}, | |
{ | |
"name": "make_pass", | |
"type": "void (*)(const sg_pass_desc *, sg_pass, void *)" | |
}, | |
{ | |
"name": "destroy_buffer", | |
"type": "void (*)(sg_buffer, void *)" | |
}, | |
{ | |
"name": "destroy_image", | |
"type": "void (*)(sg_image, void *)" | |
}, | |
{ | |
"name": "destroy_shader", | |
"type": "void (*)(sg_shader, void *)" | |
}, | |
{ | |
"name": "destroy_pipeline", | |
"type": "void (*)(sg_pipeline, void *)" | |
}, | |
{ | |
"name": "destroy_pass", | |
"type": "void (*)(sg_pass, void *)" | |
}, | |
{ | |
"name": "update_buffer", | |
"type": "void (*)(sg_buffer, const void *, int, void *)" | |
}, | |
{ | |
"name": "update_image", | |
"type": "void (*)(sg_image, const sg_image_content *, void *)" | |
}, | |
{ | |
"name": "append_buffer", | |
"type": "void (*)(sg_buffer, const void *, int, int, void *)" | |
}, | |
{ | |
"name": "begin_default_pass", | |
"type": "void (*)(const sg_pass_action *, int, int, void *)" | |
}, | |
{ | |
"name": "begin_pass", | |
"type": "void (*)(sg_pass, const sg_pass_action *, void *)" | |
}, | |
{ | |
"name": "apply_viewport", | |
"type": "void (*)(int, int, int, int, bool, void *)" | |
}, | |
{ | |
"name": "apply_scissor_rect", | |
"type": "void (*)(int, int, int, int, bool, void *)" | |
}, | |
{ | |
"name": "apply_pipeline", | |
"type": "void (*)(sg_pipeline, void *)" | |
}, | |
{ | |
"name": "apply_bindings", | |
"type": "void (*)(const sg_bindings *, void *)" | |
}, | |
{ | |
"name": "apply_uniforms", | |
"type": "void (*)(sg_shader_stage, int, const void *, int, void *)" | |
}, | |
{ | |
"name": "draw", | |
"type": "void (*)(int, int, int, void *)" | |
}, | |
{ | |
"name": "end_pass", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "commit", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "alloc_buffer", | |
"type": "void (*)(sg_buffer, void *)" | |
}, | |
{ | |
"name": "alloc_image", | |
"type": "void (*)(sg_image, void *)" | |
}, | |
{ | |
"name": "alloc_shader", | |
"type": "void (*)(sg_shader, void *)" | |
}, | |
{ | |
"name": "alloc_pipeline", | |
"type": "void (*)(sg_pipeline, void *)" | |
}, | |
{ | |
"name": "alloc_pass", | |
"type": "void (*)(sg_pass, void *)" | |
}, | |
{ | |
"name": "init_buffer", | |
"type": "void (*)(sg_buffer, const sg_buffer_desc *, void *)" | |
}, | |
{ | |
"name": "init_image", | |
"type": "void (*)(sg_image, const sg_image_desc *, void *)" | |
}, | |
{ | |
"name": "init_shader", | |
"type": "void (*)(sg_shader, const sg_shader_desc *, void *)" | |
}, | |
{ | |
"name": "init_pipeline", | |
"type": "void (*)(sg_pipeline, const sg_pipeline_desc *, void *)" | |
}, | |
{ | |
"name": "init_pass", | |
"type": "void (*)(sg_pass, const sg_pass_desc *, void *)" | |
}, | |
{ | |
"name": "fail_buffer", | |
"type": "void (*)(sg_buffer, void *)" | |
}, | |
{ | |
"name": "fail_image", | |
"type": "void (*)(sg_image, void *)" | |
}, | |
{ | |
"name": "fail_shader", | |
"type": "void (*)(sg_shader, void *)" | |
}, | |
{ | |
"name": "fail_pipeline", | |
"type": "void (*)(sg_pipeline, void *)" | |
}, | |
{ | |
"name": "fail_pass", | |
"type": "void (*)(sg_pass, void *)" | |
}, | |
{ | |
"name": "push_debug_group", | |
"type": "void (*)(const char *, void *)" | |
}, | |
{ | |
"name": "pop_debug_group", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_buffer_pool_exhausted", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_image_pool_exhausted", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_shader_pool_exhausted", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_pipeline_pool_exhausted", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_pass_pool_exhausted", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_context_mismatch", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_pass_invalid", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_draw_invalid", | |
"type": "void (*)(void *)" | |
}, | |
{ | |
"name": "err_bindings_invalid", | |
"type": "void (*)(void *)" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_slot_info", | |
"fields": [ | |
{ | |
"name": "state", | |
"type": "sg_resource_state" | |
}, | |
{ | |
"name": "res_id", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "ctx_id", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_buffer_info", | |
"fields": [ | |
{ | |
"name": "slot", | |
"type": "sg_slot_info" | |
}, | |
{ | |
"name": "update_frame_index", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "append_frame_index", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "append_pos", | |
"type": "int" | |
}, | |
{ | |
"name": "append_overflow", | |
"type": "bool" | |
}, | |
{ | |
"name": "num_slots", | |
"type": "int" | |
}, | |
{ | |
"name": "active_slot", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_image_info", | |
"fields": [ | |
{ | |
"name": "slot", | |
"type": "sg_slot_info" | |
}, | |
{ | |
"name": "upd_frame_index", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "num_slots", | |
"type": "int" | |
}, | |
{ | |
"name": "active_slot", | |
"type": "int" | |
}, | |
{ | |
"name": "width", | |
"type": "int" | |
}, | |
{ | |
"name": "height", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_shader_info", | |
"fields": [ | |
{ | |
"name": "slot", | |
"type": "sg_slot_info" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pipeline_info", | |
"fields": [ | |
{ | |
"name": "slot", | |
"type": "sg_slot_info" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_pass_info", | |
"fields": [ | |
{ | |
"name": "slot", | |
"type": "sg_slot_info" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_gl_context_desc", | |
"fields": [ | |
{ | |
"name": "force_gles2", | |
"type": "bool" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_mtl_context_desc", | |
"fields": [ | |
{ | |
"name": "device", | |
"type": "const void *" | |
}, | |
{ | |
"name": "renderpass_descriptor_cb", | |
"type": "const void *(*)(void)" | |
}, | |
{ | |
"name": "drawable_cb", | |
"type": "const void *(*)(void)" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_d3d11_context_desc", | |
"fields": [ | |
{ | |
"name": "device", | |
"type": "const void *" | |
}, | |
{ | |
"name": "device_context", | |
"type": "const void *" | |
}, | |
{ | |
"name": "render_target_view_cb", | |
"type": "const void *(*)(void)" | |
}, | |
{ | |
"name": "depth_stencil_view_cb", | |
"type": "const void *(*)(void)" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_wgpu_context_desc", | |
"fields": [ | |
{ | |
"name": "device", | |
"type": "const void *" | |
}, | |
{ | |
"name": "render_view_cb", | |
"type": "const void *(*)(void)" | |
}, | |
{ | |
"name": "resolve_view_cb", | |
"type": "const void *(*)(void)" | |
}, | |
{ | |
"name": "depth_stencil_view_cb", | |
"type": "const void *(*)(void)" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_context_desc", | |
"fields": [ | |
{ | |
"name": "color_format", | |
"type": "sg_pixel_format" | |
}, | |
{ | |
"name": "depth_format", | |
"type": "sg_pixel_format" | |
}, | |
{ | |
"name": "sample_count", | |
"type": "int" | |
}, | |
{ | |
"name": "gl", | |
"type": "sg_gl_context_desc" | |
}, | |
{ | |
"name": "metal", | |
"type": "sg_metal_context_desc" | |
}, | |
{ | |
"name": "d3d11", | |
"type": "sg_d3d11_context_desc" | |
}, | |
{ | |
"name": "wgpu", | |
"type": "sg_wgpu_context_desc" | |
} | |
] | |
}, | |
{ | |
"kind": "struct", | |
"name": "sg_desc", | |
"fields": [ | |
{ | |
"name": "_start_canary", | |
"type": "uint32_t" | |
}, | |
{ | |
"name": "buffer_pool_size", | |
"type": "int" | |
}, | |
{ | |
"name": "image_pool_size", | |
"type": "int" | |
}, | |
{ | |
"name": "shader_pool_size", | |
"type": "int" | |
}, | |
{ | |
"name": "pipeline_pool_size", | |
"type": "int" | |
}, | |
{ | |
"name": "pass_pool_size", | |
"type": "int" | |
}, | |
{ | |
"name": "context_pool_size", | |
"type": "int" | |
}, | |
{ | |
"name": "uniform_buffer_size", | |
"type": "int" | |
}, | |
{ | |
"name": "staging_buffer_size", | |
"type": "int" | |
}, | |
{ | |
"name": "sampler_cache_size", | |
"type": "int" | |
}, | |
{ | |
"name": "context", | |
"type": "sg_context_desc" | |
}, | |
{ | |
"name": "_end_canary", | |
"type": "uint32_t" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_setup", | |
"type": "void (const sg_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_shutdown", | |
"type": "void (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_isvalid", | |
"type": "bool (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_reset_state_cache", | |
"type": "void (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_install_trace_hooks", | |
"type": "sg_trace_hooks (const sg_trace_hooks *)", | |
"params": [ | |
{ | |
"name": "trace_hooks", | |
"type": "const sg_trace_hooks *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_push_debug_group", | |
"type": "void (const char *)", | |
"params": [ | |
{ | |
"name": "name", | |
"type": "const char *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_pop_debug_group", | |
"type": "void (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_make_buffer", | |
"type": "sg_buffer (const sg_buffer_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_buffer_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_make_image", | |
"type": "sg_image (const sg_image_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_image_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_make_shader", | |
"type": "sg_shader (const sg_shader_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_shader_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_make_pipeline", | |
"type": "sg_pipeline (const sg_pipeline_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_pipeline_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_make_pass", | |
"type": "sg_pass (const sg_pass_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_pass_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_destroy_buffer", | |
"type": "void (sg_buffer)", | |
"params": [ | |
{ | |
"name": "buf", | |
"type": "sg_buffer" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_destroy_image", | |
"type": "void (sg_image)", | |
"params": [ | |
{ | |
"name": "img", | |
"type": "sg_image" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_destroy_shader", | |
"type": "void (sg_shader)", | |
"params": [ | |
{ | |
"name": "shd", | |
"type": "sg_shader" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_destroy_pipeline", | |
"type": "void (sg_pipeline)", | |
"params": [ | |
{ | |
"name": "pip", | |
"type": "sg_pipeline" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_destroy_pass", | |
"type": "void (sg_pass)", | |
"params": [ | |
{ | |
"name": "pass", | |
"type": "sg_pass" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_update_buffer", | |
"type": "void (sg_buffer, const void *, int)", | |
"params": [ | |
{ | |
"name": "buf", | |
"type": "sg_buffer" | |
}, | |
{ | |
"name": "data_ptr", | |
"type": "const void *" | |
}, | |
{ | |
"name": "data_size", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_update_image", | |
"type": "void (sg_image, const sg_image_content *)", | |
"params": [ | |
{ | |
"name": "img", | |
"type": "sg_image" | |
}, | |
{ | |
"name": "data", | |
"type": "const sg_image_content *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_append_buffer", | |
"type": "int (sg_buffer, const void *, int)", | |
"params": [ | |
{ | |
"name": "buf", | |
"type": "sg_buffer" | |
}, | |
{ | |
"name": "data_ptr", | |
"type": "const void *" | |
}, | |
{ | |
"name": "data_size", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_buffer_overflow", | |
"type": "bool (sg_buffer)", | |
"params": [ | |
{ | |
"name": "buf", | |
"type": "sg_buffer" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_begin_default_pass", | |
"type": "void (const sg_pass_action *, int, int)", | |
"params": [ | |
{ | |
"name": "pass_action", | |
"type": "const sg_pass_action *" | |
}, | |
{ | |
"name": "width", | |
"type": "int" | |
}, | |
{ | |
"name": "height", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_begin_pass", | |
"type": "void (sg_pass, const sg_pass_action *)", | |
"params": [ | |
{ | |
"name": "pass", | |
"type": "sg_pass" | |
}, | |
{ | |
"name": "pass_action", | |
"type": "const sg_pass_action *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_apply_viewport", | |
"type": "void (int, int, int, int, bool)", | |
"params": [ | |
{ | |
"name": "x", | |
"type": "int" | |
}, | |
{ | |
"name": "y", | |
"type": "int" | |
}, | |
{ | |
"name": "width", | |
"type": "int" | |
}, | |
{ | |
"name": "height", | |
"type": "int" | |
}, | |
{ | |
"name": "origin_top_left", | |
"type": "bool" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_apply_scissor_rect", | |
"type": "void (int, int, int, int, bool)", | |
"params": [ | |
{ | |
"name": "x", | |
"type": "int" | |
}, | |
{ | |
"name": "y", | |
"type": "int" | |
}, | |
{ | |
"name": "width", | |
"type": "int" | |
}, | |
{ | |
"name": "height", | |
"type": "int" | |
}, | |
{ | |
"name": "origin_top_left", | |
"type": "bool" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_apply_pipeline", | |
"type": "void (sg_pipeline)", | |
"params": [ | |
{ | |
"name": "pip", | |
"type": "sg_pipeline" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_apply_bindings", | |
"type": "void (const sg_bindings *)", | |
"params": [ | |
{ | |
"name": "bindings", | |
"type": "const sg_bindings *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_apply_uniforms", | |
"type": "void (sg_shader_stage, int, const void *, int)", | |
"params": [ | |
{ | |
"name": "stage", | |
"type": "sg_shader_stage" | |
}, | |
{ | |
"name": "ub_index", | |
"type": "int" | |
}, | |
{ | |
"name": "data", | |
"type": "const void *" | |
}, | |
{ | |
"name": "num_bytes", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_draw", | |
"type": "void (int, int, int)", | |
"params": [ | |
{ | |
"name": "base_element", | |
"type": "int" | |
}, | |
{ | |
"name": "num_elements", | |
"type": "int" | |
}, | |
{ | |
"name": "num_instances", | |
"type": "int" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_end_pass", | |
"type": "void (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_commit", | |
"type": "void (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_desc", | |
"type": "sg_desc (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_backend", | |
"type": "sg_backend (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_features", | |
"type": "sg_features (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_limits", | |
"type": "sg_limits (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_pixelformat", | |
"type": "sg_pixelformat_info (sg_pixel_format)", | |
"params": [ | |
{ | |
"name": "fmt", | |
"type": "sg_pixel_format" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_buffer_state", | |
"type": "sg_resource_state (sg_buffer)", | |
"params": [ | |
{ | |
"name": "buf", | |
"type": "sg_buffer" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_image_state", | |
"type": "sg_resource_state (sg_image)", | |
"params": [ | |
{ | |
"name": "img", | |
"type": "sg_image" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_shader_state", | |
"type": "sg_resource_state (sg_shader)", | |
"params": [ | |
{ | |
"name": "shd", | |
"type": "sg_shader" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_pipeline_state", | |
"type": "sg_resource_state (sg_pipeline)", | |
"params": [ | |
{ | |
"name": "pip", | |
"type": "sg_pipeline" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_pass_state", | |
"type": "sg_resource_state (sg_pass)", | |
"params": [ | |
{ | |
"name": "pass", | |
"type": "sg_pass" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_buffer_info", | |
"type": "sg_buffer_info (sg_buffer)", | |
"params": [ | |
{ | |
"name": "buf", | |
"type": "sg_buffer" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_image_info", | |
"type": "sg_image_info (sg_image)", | |
"params": [ | |
{ | |
"name": "img", | |
"type": "sg_image" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_shader_info", | |
"type": "sg_shader_info (sg_shader)", | |
"params": [ | |
{ | |
"name": "shd", | |
"type": "sg_shader" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_pipeline_info", | |
"type": "sg_pipeline_info (sg_pipeline)", | |
"params": [ | |
{ | |
"name": "pip", | |
"type": "sg_pipeline" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_pass_info", | |
"type": "sg_pass_info (sg_pass)", | |
"params": [ | |
{ | |
"name": "pass", | |
"type": "sg_pass" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_buffer_defaults", | |
"type": "sg_buffer_desc (const sg_buffer_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_buffer_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_image_defaults", | |
"type": "sg_image_desc (const sg_image_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_image_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_shader_defaults", | |
"type": "sg_shader_desc (const sg_shader_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_shader_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_pipeline_defaults", | |
"type": "sg_pipeline_desc (const sg_pipeline_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_pipeline_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_query_pass_defaults", | |
"type": "sg_pass_desc (const sg_pass_desc *)", | |
"params": [ | |
{ | |
"name": "desc", | |
"type": "const sg_pass_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_alloc_buffer", | |
"type": "sg_buffer (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_alloc_image", | |
"type": "sg_image (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_alloc_shader", | |
"type": "sg_shader (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_alloc_pipeline", | |
"type": "sg_pipeline (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_alloc_pass", | |
"type": "sg_pass (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_init_buffer", | |
"type": "void (sg_buffer, const sg_buffer_desc *)", | |
"params": [ | |
{ | |
"name": "buf_id", | |
"type": "sg_buffer" | |
}, | |
{ | |
"name": "desc", | |
"type": "const sg_buffer_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_init_image", | |
"type": "void (sg_image, const sg_image_desc *)", | |
"params": [ | |
{ | |
"name": "img_id", | |
"type": "sg_image" | |
}, | |
{ | |
"name": "desc", | |
"type": "const sg_image_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_init_shader", | |
"type": "void (sg_shader, const sg_shader_desc *)", | |
"params": [ | |
{ | |
"name": "shd_id", | |
"type": "sg_shader" | |
}, | |
{ | |
"name": "desc", | |
"type": "const sg_shader_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_init_pipeline", | |
"type": "void (sg_pipeline, const sg_pipeline_desc *)", | |
"params": [ | |
{ | |
"name": "pip_id", | |
"type": "sg_pipeline" | |
}, | |
{ | |
"name": "desc", | |
"type": "const sg_pipeline_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_init_pass", | |
"type": "void (sg_pass, const sg_pass_desc *)", | |
"params": [ | |
{ | |
"name": "pass_id", | |
"type": "sg_pass" | |
}, | |
{ | |
"name": "desc", | |
"type": "const sg_pass_desc *" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_fail_buffer", | |
"type": "void (sg_buffer)", | |
"params": [ | |
{ | |
"name": "buf_id", | |
"type": "sg_buffer" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_fail_image", | |
"type": "void (sg_image)", | |
"params": [ | |
{ | |
"name": "img_id", | |
"type": "sg_image" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_fail_shader", | |
"type": "void (sg_shader)", | |
"params": [ | |
{ | |
"name": "shd_id", | |
"type": "sg_shader" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_fail_pipeline", | |
"type": "void (sg_pipeline)", | |
"params": [ | |
{ | |
"name": "pip_id", | |
"type": "sg_pipeline" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_fail_pass", | |
"type": "void (sg_pass)", | |
"params": [ | |
{ | |
"name": "pass_id", | |
"type": "sg_pass" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_setup_context", | |
"type": "sg_context (void)", | |
"params": [] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_activate_context", | |
"type": "void (sg_context)", | |
"params": [ | |
{ | |
"name": "ctx_id", | |
"type": "sg_context" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_discard_context", | |
"type": "void (sg_context)", | |
"params": [ | |
{ | |
"name": "ctx_id", | |
"type": "sg_context" | |
} | |
] | |
}, | |
{ | |
"kind": "func", | |
"name": "sg_mtl_render_command_encoder", | |
"type": "const void *(void)", | |
"params": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment