sokol.gfx

Undocumented in source.

Members

Enums

Backend
enum Backend

sg_backend

BlendFactor
enum BlendFactor

sg_blend_factor

BlendOp
enum BlendOp

sg_blend_op

BorderColor
enum BorderColor

sg_border_color

BufferType
enum BufferType

sg_buffer_type

ColorMask
enum ColorMask

sg_color_mask

CompareFunc
enum CompareFunc

sg_compare_func

CubeFace
enum CubeFace

sg_cube_face

CullMode
enum CullMode

sg_cull_mode

FaceWinding
enum FaceWinding

sg_face_winding

Filter
enum Filter

sg_filter

ImageSampleType
enum ImageSampleType

sg_image_sample_type

ImageType
enum ImageType

sg_image_type

IndexType
enum IndexType

sg_index_type

LoadAction
enum LoadAction

sg_load_action

LogItem
enum LogItem
Undocumented in source.
PixelFormat
enum PixelFormat

sg_pixel_format

PrimitiveType
enum PrimitiveType

sg_primitive_type

ResourceState
enum ResourceState

sg_resource_state

SamplerType
enum SamplerType

sg_sampler_type

ShaderStage
enum ShaderStage

sg_shader_desc

StencilOp
enum StencilOp

sg_stencil_op

StoreAction
enum StoreAction

sg_store_action

UniformLayout
enum UniformLayout

sg_uniform_layout

UniformType
enum UniformType

sg_uniform_type

Usage
enum Usage

sg_usage

VertexFormat
enum VertexFormat

sg_vertex_format

VertexStep
enum VertexStep

sg_vertex_step

Wrap
enum Wrap

sg_wrap

Functions

addCommitListener
bool addCommitListener(CommitListener listener)
Undocumented in source. Be warned that the author may not have intended to support it.
allocAttachments
Attachments allocAttachments()
Undocumented in source. Be warned that the author may not have intended to support it.
allocBuffer
Buffer allocBuffer()

separate resource allocation and initialization (for async setup

allocImage
Image allocImage()
Undocumented in source. Be warned that the author may not have intended to support it.
allocPipeline
Pipeline allocPipeline()
Undocumented in source. Be warned that the author may not have intended to support it.
allocSampler
Sampler allocSampler()
Undocumented in source. Be warned that the author may not have intended to support it.
allocShader
Shader allocShader()
Undocumented in source. Be warned that the author may not have intended to support it.
appendBuffer
int appendBuffer(Buffer buf, Range data)
Undocumented in source. Be warned that the author may not have intended to support it.
applyBindings
void applyBindings(Bindings bindings)
Undocumented in source. Be warned that the author may not have intended to support it.
applyPipeline
void applyPipeline(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
applyScissorRect
void applyScissorRect(int x, int y, int width, int height, bool origin_top_left)
Undocumented in source. Be warned that the author may not have intended to support it.
applyScissorRectf
void applyScissorRectf(float x, float y, float width, float height, bool origin_top_left)
Undocumented in source. Be warned that the author may not have intended to support it.
applyUniforms
void applyUniforms(uint ub_slot, Range data)
Undocumented in source. Be warned that the author may not have intended to support it.
applyViewport
void applyViewport(int x, int y, int width, int height, bool origin_top_left)
Undocumented in source. Be warned that the author may not have intended to support it.
applyViewportf
void applyViewportf(float x, float y, float width, float height, bool origin_top_left)
Undocumented in source. Be warned that the author may not have intended to support it.
beginPass
void beginPass(Pass pass)

rendering function

commit
void commit()
Undocumented in source. Be warned that the author may not have intended to support it.
d3d11Device
const(void)* d3d11Device()

D3D11: return ID3D11Devic

d3d11DeviceContext
const(void)* d3d11DeviceContext()

D3D11: return ID3D11DeviceContex

d3d11QueryAttachmentsInfo
D3d11AttachmentsInfo d3d11QueryAttachmentsInfo(Attachments atts)

D3D11: get internal pass resource object

d3d11QueryBufferInfo
D3d11BufferInfo d3d11QueryBufferInfo(Buffer buf)

D3D11: get internal buffer resource object

d3d11QueryImageInfo
D3d11ImageInfo d3d11QueryImageInfo(Image img)

D3D11: get internal image resource object

d3d11QueryPipelineInfo
D3d11PipelineInfo d3d11QueryPipelineInfo(Pipeline pip)

D3D11: get internal pipeline resource object

d3d11QuerySamplerInfo
D3d11SamplerInfo d3d11QuerySamplerInfo(Sampler smp)

D3D11: get internal sampler resource object

d3d11QueryShaderInfo
D3d11ShaderInfo d3d11QueryShaderInfo(Shader shd)

D3D11: get internal shader resource object

deallocAttachments
void deallocAttachments(Attachments attachments)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocBuffer
void deallocBuffer(Buffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocImage
void deallocImage(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocPipeline
void deallocPipeline(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocSampler
void deallocSampler(Sampler smp)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocShader
void deallocShader(Shader shd)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyAttachments
void destroyAttachments(Attachments atts)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyBuffer
void destroyBuffer(Buffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyImage
void destroyImage(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyPipeline
void destroyPipeline(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
destroySampler
void destroySampler(Sampler smp)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyShader
void destroyShader(Shader shd)
Undocumented in source. Be warned that the author may not have intended to support it.
disableFrameStats
void disableFrameStats()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(uint base_element, uint num_elements, uint num_instances)
Undocumented in source. Be warned that the author may not have intended to support it.
enableFrameStats
void enableFrameStats()

frame stat

endPass
void endPass()
Undocumented in source. Be warned that the author may not have intended to support it.
failAttachments
void failAttachments(Attachments atts)
Undocumented in source. Be warned that the author may not have intended to support it.
failBuffer
void failBuffer(Buffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
failImage
void failImage(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
failPipeline
void failPipeline(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
failSampler
void failSampler(Sampler smp)
Undocumented in source. Be warned that the author may not have intended to support it.
failShader
void failShader(Shader shd)
Undocumented in source. Be warned that the author may not have intended to support it.
frameStatsEnabled
bool frameStatsEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
glQueryAttachmentsInfo
GlAttachmentsInfo glQueryAttachmentsInfo(Attachments atts)

GL: get internal pass resource object

glQueryBufferInfo
GlBufferInfo glQueryBufferInfo(Buffer buf)

GL: get internal buffer resource object

glQueryImageInfo
GlImageInfo glQueryImageInfo(Image img)

GL: get internal image resource object

glQuerySamplerInfo
GlSamplerInfo glQuerySamplerInfo(Sampler smp)

GL: get internal sampler resource object

glQueryShaderInfo
GlShaderInfo glQueryShaderInfo(Shader shd)

GL: get internal shader resource object

initAttachments
void initAttachments(Attachments attachments, AttachmentsDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
initBuffer
void initBuffer(Buffer buf, BufferDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
initImage
void initImage(Image img, ImageDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
initPipeline
void initPipeline(Pipeline pip, PipelineDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
initSampler
void initSampler(Sampler smg, SamplerDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
initShader
void initShader(Shader shd, ShaderDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
installTraceHooks
TraceHooks installTraceHooks(TraceHooks trace_hooks)
Undocumented in source. Be warned that the author may not have intended to support it.
isvalid
bool isvalid()
Undocumented in source. Be warned that the author may not have intended to support it.
makeAttachments
Attachments makeAttachments(AttachmentsDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
makeBuffer
Buffer makeBuffer(BufferDesc desc)

resource creation, destruction and updatin

makeImage
Image makeImage(ImageDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
makePipeline
Pipeline makePipeline(PipelineDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
makeSampler
Sampler makeSampler(SamplerDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
makeShader
Shader makeShader(ShaderDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
mtlDevice
const(void)* mtlDevice()

Metal: return __bridge-casted MTLDevic

mtlQueryBufferInfo
MtlBufferInfo mtlQueryBufferInfo(Buffer buf)

Metal: get internal __bridge-casted buffer resource object

mtlQueryImageInfo
MtlImageInfo mtlQueryImageInfo(Image img)

Metal: get internal __bridge-casted image resource object

mtlQueryPipelineInfo
MtlPipelineInfo mtlQueryPipelineInfo(Pipeline pip)

Metal: get internal __bridge-casted pipeline resource object

mtlQuerySamplerInfo
MtlSamplerInfo mtlQuerySamplerInfo(Sampler smp)

Metal: get internal __bridge-casted sampler resource object

mtlQueryShaderInfo
MtlShaderInfo mtlQueryShaderInfo(Shader shd)

Metal: get internal __bridge-casted shader resource object

mtlRenderCommandEncoder
const(void)* mtlRenderCommandEncoder()

Metal: return __bridge-casted MTLRenderCommandEncoder in current pass (or zero if outside pass

popDebugGroup
void popDebugGroup()
Undocumented in source. Be warned that the author may not have intended to support it.
pushDebugGroup
void pushDebugGroup(const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
queryAttachmentsDefaults
AttachmentsDesc queryAttachmentsDefaults(AttachmentsDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
queryAttachmentsDesc
AttachmentsDesc queryAttachmentsDesc(Attachments atts)
Undocumented in source. Be warned that the author may not have intended to support it.
queryAttachmentsInfo
AttachmentsInfo queryAttachmentsInfo(Attachments atts)
Undocumented in source. Be warned that the author may not have intended to support it.
queryAttachmentsState
ResourceState queryAttachmentsState(Attachments atts)
Undocumented in source. Be warned that the author may not have intended to support it.
queryBackend
Backend queryBackend()
Undocumented in source. Be warned that the author may not have intended to support it.
queryBufferDefaults
BufferDesc queryBufferDefaults(BufferDesc desc)

get resource creation desc struct with their default values replace

queryBufferDesc
BufferDesc queryBufferDesc(Buffer buf)

get desc structs matching a specific resource (NOTE that not all creation attributes may be provided

queryBufferInfo
BufferInfo queryBufferInfo(Buffer buf)

get runtime information about a resourc

queryBufferOverflow
bool queryBufferOverflow(Buffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
queryBufferSize
size_t queryBufferSize(Buffer buf)

assorted query function

queryBufferState
ResourceState queryBufferState(Buffer buf)

get current state of a resource (INITIAL, ALLOC, VALID, FAILED, INVALID

queryBufferType
BufferType queryBufferType(Buffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
queryBufferUsage
Usage queryBufferUsage(Buffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
queryBufferWillOverflow
bool queryBufferWillOverflow(Buffer buf, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
queryDesc
Desc queryDesc()

getting informatio

queryFeatures
Features queryFeatures()
Undocumented in source. Be warned that the author may not have intended to support it.
queryFrameStats
FrameStats queryFrameStats()
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageDefaults
ImageDesc queryImageDefaults(ImageDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageDesc
ImageDesc queryImageDesc(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageHeight
int queryImageHeight(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageInfo
ImageInfo queryImageInfo(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageNumMipmaps
int queryImageNumMipmaps(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageNumSlices
int queryImageNumSlices(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImagePixelformat
PixelFormat queryImagePixelformat(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageSampleCount
int queryImageSampleCount(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageState
ResourceState queryImageState(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageType
ImageType queryImageType(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageUsage
Usage queryImageUsage(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryImageWidth
int queryImageWidth(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
queryLimits
Limits queryLimits()
Undocumented in source. Be warned that the author may not have intended to support it.
queryPipelineDefaults
PipelineDesc queryPipelineDefaults(PipelineDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
queryPipelineDesc
PipelineDesc queryPipelineDesc(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
queryPipelineInfo
PipelineInfo queryPipelineInfo(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
queryPipelineState
ResourceState queryPipelineState(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
queryPixelformat
PixelformatInfo queryPixelformat(PixelFormat fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
queryRowPitch
int queryRowPitch(PixelFormat fmt, int width, int row_align_bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
querySamplerDefaults
SamplerDesc querySamplerDefaults(SamplerDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
querySamplerDesc
SamplerDesc querySamplerDesc(Sampler smp)
Undocumented in source. Be warned that the author may not have intended to support it.
querySamplerInfo
SamplerInfo querySamplerInfo(Sampler smp)
Undocumented in source. Be warned that the author may not have intended to support it.
querySamplerState
ResourceState querySamplerState(Sampler smp)
Undocumented in source. Be warned that the author may not have intended to support it.
queryShaderDefaults
ShaderDesc queryShaderDefaults(ShaderDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
queryShaderDesc
ShaderDesc queryShaderDesc(Shader shd)
Undocumented in source. Be warned that the author may not have intended to support it.
queryShaderInfo
ShaderInfo queryShaderInfo(Shader shd)
Undocumented in source. Be warned that the author may not have intended to support it.
queryShaderState
ResourceState queryShaderState(Shader shd)
Undocumented in source. Be warned that the author may not have intended to support it.
querySurfacePitch
int querySurfacePitch(PixelFormat fmt, int width, int height, int row_align_bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
removeCommitListener
bool removeCommitListener(CommitListener listener)
Undocumented in source. Be warned that the author may not have intended to support it.
resetStateCache
void resetStateCache()
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup(Desc desc)

setup and misc function

sg_add_commit_listener
bool sg_add_commit_listener(CommitListener )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_alloc_attachments
Attachments sg_alloc_attachments()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_alloc_buffer
Buffer sg_alloc_buffer()

separate resource allocation and initialization (for async setup

sg_alloc_image
Image sg_alloc_image()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_alloc_pipeline
Pipeline sg_alloc_pipeline()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_alloc_sampler
Sampler sg_alloc_sampler()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_alloc_shader
Shader sg_alloc_shader()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_append_buffer
int sg_append_buffer(Buffer , Range* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_apply_bindings
void sg_apply_bindings(Bindings* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_apply_pipeline
void sg_apply_pipeline(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_apply_scissor_rect
void sg_apply_scissor_rect(int , int , int , int , bool )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_apply_scissor_rectf
void sg_apply_scissor_rectf(float , float , float , float , bool )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_apply_uniforms
void sg_apply_uniforms(uint , Range* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_apply_viewport
void sg_apply_viewport(int , int , int , int , bool )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_apply_viewportf
void sg_apply_viewportf(float , float , float , float , bool )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_begin_pass
void sg_begin_pass(Pass* )

rendering function

sg_commit
void sg_commit()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_d3d11_device
const(void)* sg_d3d11_device()

D3D11: return ID3D11Devic

sg_d3d11_device_context
const(void)* sg_d3d11_device_context()

D3D11: return ID3D11DeviceContex

sg_d3d11_query_attachments_info
D3d11AttachmentsInfo sg_d3d11_query_attachments_info(Attachments )

D3D11: get internal pass resource object

sg_d3d11_query_buffer_info
D3d11BufferInfo sg_d3d11_query_buffer_info(Buffer )

D3D11: get internal buffer resource object

sg_d3d11_query_image_info
D3d11ImageInfo sg_d3d11_query_image_info(Image )

D3D11: get internal image resource object

sg_d3d11_query_pipeline_info
D3d11PipelineInfo sg_d3d11_query_pipeline_info(Pipeline )

D3D11: get internal pipeline resource object

sg_d3d11_query_sampler_info
D3d11SamplerInfo sg_d3d11_query_sampler_info(Sampler )

D3D11: get internal sampler resource object

sg_d3d11_query_shader_info
D3d11ShaderInfo sg_d3d11_query_shader_info(Shader )

D3D11: get internal shader resource object

sg_dealloc_attachments
void sg_dealloc_attachments(Attachments )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_dealloc_buffer
void sg_dealloc_buffer(Buffer )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_dealloc_image
void sg_dealloc_image(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_dealloc_pipeline
void sg_dealloc_pipeline(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_dealloc_sampler
void sg_dealloc_sampler(Sampler )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_dealloc_shader
void sg_dealloc_shader(Shader )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_destroy_attachments
void sg_destroy_attachments(Attachments )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_destroy_buffer
void sg_destroy_buffer(Buffer )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_destroy_image
void sg_destroy_image(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_destroy_pipeline
void sg_destroy_pipeline(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_destroy_sampler
void sg_destroy_sampler(Sampler )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_destroy_shader
void sg_destroy_shader(Shader )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_disable_frame_stats
void sg_disable_frame_stats()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_draw
void sg_draw(uint , uint , uint )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_enable_frame_stats
void sg_enable_frame_stats()

frame stat

sg_end_pass
void sg_end_pass()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_fail_attachments
void sg_fail_attachments(Attachments )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_fail_buffer
void sg_fail_buffer(Buffer )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_fail_image
void sg_fail_image(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_fail_pipeline
void sg_fail_pipeline(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_fail_sampler
void sg_fail_sampler(Sampler )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_fail_shader
void sg_fail_shader(Shader )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_frame_stats_enabled
bool sg_frame_stats_enabled()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_gl_query_attachments_info
GlAttachmentsInfo sg_gl_query_attachments_info(Attachments )

GL: get internal pass resource object

sg_gl_query_buffer_info
GlBufferInfo sg_gl_query_buffer_info(Buffer )

GL: get internal buffer resource object

sg_gl_query_image_info
GlImageInfo sg_gl_query_image_info(Image )

GL: get internal image resource object

sg_gl_query_sampler_info
GlSamplerInfo sg_gl_query_sampler_info(Sampler )

GL: get internal sampler resource object

sg_gl_query_shader_info
GlShaderInfo sg_gl_query_shader_info(Shader )

GL: get internal shader resource object

sg_init_attachments
void sg_init_attachments(Attachments , AttachmentsDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_init_buffer
void sg_init_buffer(Buffer , BufferDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_init_image
void sg_init_image(Image , ImageDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_init_pipeline
void sg_init_pipeline(Pipeline , PipelineDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_init_sampler
void sg_init_sampler(Sampler , SamplerDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_init_shader
void sg_init_shader(Shader , ShaderDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_install_trace_hooks
TraceHooks sg_install_trace_hooks(TraceHooks* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_isvalid
bool sg_isvalid()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_make_attachments
Attachments sg_make_attachments(AttachmentsDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_make_buffer
Buffer sg_make_buffer(BufferDesc* )

resource creation, destruction and updatin

sg_make_image
Image sg_make_image(ImageDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_make_pipeline
Pipeline sg_make_pipeline(PipelineDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_make_sampler
Sampler sg_make_sampler(SamplerDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_make_shader
Shader sg_make_shader(ShaderDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_mtl_device
const(void)* sg_mtl_device()

Metal: return __bridge-casted MTLDevic

sg_mtl_query_buffer_info
MtlBufferInfo sg_mtl_query_buffer_info(Buffer )

Metal: get internal __bridge-casted buffer resource object

sg_mtl_query_image_info
MtlImageInfo sg_mtl_query_image_info(Image )

Metal: get internal __bridge-casted image resource object

sg_mtl_query_pipeline_info
MtlPipelineInfo sg_mtl_query_pipeline_info(Pipeline )

Metal: get internal __bridge-casted pipeline resource object

sg_mtl_query_sampler_info
MtlSamplerInfo sg_mtl_query_sampler_info(Sampler )

Metal: get internal __bridge-casted sampler resource object

sg_mtl_query_shader_info
MtlShaderInfo sg_mtl_query_shader_info(Shader )

Metal: get internal __bridge-casted shader resource object

sg_mtl_render_command_encoder
const(void)* sg_mtl_render_command_encoder()

Metal: return __bridge-casted MTLRenderCommandEncoder in current pass (or zero if outside pass

sg_pop_debug_group
void sg_pop_debug_group()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_push_debug_group
void sg_push_debug_group(const(char)* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_attachments_defaults
AttachmentsDesc sg_query_attachments_defaults(AttachmentsDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_attachments_desc
AttachmentsDesc sg_query_attachments_desc(Attachments )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_attachments_info
AttachmentsInfo sg_query_attachments_info(Attachments )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_attachments_state
ResourceState sg_query_attachments_state(Attachments )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_backend
Backend sg_query_backend()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_buffer_defaults
BufferDesc sg_query_buffer_defaults(BufferDesc* )

get resource creation desc struct with their default values replace

sg_query_buffer_desc
BufferDesc sg_query_buffer_desc(Buffer )

get desc structs matching a specific resource (NOTE that not all creation attributes may be provided

sg_query_buffer_info
BufferInfo sg_query_buffer_info(Buffer )

get runtime information about a resourc

sg_query_buffer_overflow
bool sg_query_buffer_overflow(Buffer )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_buffer_size
size_t sg_query_buffer_size(Buffer )

assorted query function

sg_query_buffer_state
ResourceState sg_query_buffer_state(Buffer )

get current state of a resource (INITIAL, ALLOC, VALID, FAILED, INVALID

sg_query_buffer_type
BufferType sg_query_buffer_type(Buffer )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_buffer_usage
Usage sg_query_buffer_usage(Buffer )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_buffer_will_overflow
bool sg_query_buffer_will_overflow(Buffer , size_t )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_desc
Desc sg_query_desc()

getting informatio

sg_query_features
Features sg_query_features()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_frame_stats
FrameStats sg_query_frame_stats()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_defaults
ImageDesc sg_query_image_defaults(ImageDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_desc
ImageDesc sg_query_image_desc(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_height
int sg_query_image_height(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_info
ImageInfo sg_query_image_info(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_num_mipmaps
int sg_query_image_num_mipmaps(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_num_slices
int sg_query_image_num_slices(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_pixelformat
PixelFormat sg_query_image_pixelformat(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_sample_count
int sg_query_image_sample_count(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_state
ResourceState sg_query_image_state(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_type
ImageType sg_query_image_type(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_usage
Usage sg_query_image_usage(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_image_width
int sg_query_image_width(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_limits
Limits sg_query_limits()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_pipeline_defaults
PipelineDesc sg_query_pipeline_defaults(PipelineDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_pipeline_desc
PipelineDesc sg_query_pipeline_desc(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_pipeline_info
PipelineInfo sg_query_pipeline_info(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_pipeline_state
ResourceState sg_query_pipeline_state(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_pixelformat
PixelformatInfo sg_query_pixelformat(PixelFormat )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_row_pitch
int sg_query_row_pitch(PixelFormat , int , int )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_sampler_defaults
SamplerDesc sg_query_sampler_defaults(SamplerDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_sampler_desc
SamplerDesc sg_query_sampler_desc(Sampler )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_sampler_info
SamplerInfo sg_query_sampler_info(Sampler )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_sampler_state
ResourceState sg_query_sampler_state(Sampler )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_shader_defaults
ShaderDesc sg_query_shader_defaults(ShaderDesc* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_shader_desc
ShaderDesc sg_query_shader_desc(Shader )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_shader_info
ShaderInfo sg_query_shader_info(Shader )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_shader_state
ResourceState sg_query_shader_state(Shader )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_query_surface_pitch
int sg_query_surface_pitch(PixelFormat , int , int , int )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_remove_commit_listener
bool sg_remove_commit_listener(CommitListener )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_reset_state_cache
void sg_reset_state_cache()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_setup
void sg_setup(Desc* )

setup and misc function

sg_shutdown
void sg_shutdown()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_uninit_attachments
void sg_uninit_attachments(Attachments )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_uninit_buffer
void sg_uninit_buffer(Buffer )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_uninit_image
void sg_uninit_image(Image )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_uninit_pipeline
void sg_uninit_pipeline(Pipeline )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_uninit_sampler
void sg_uninit_sampler(Sampler )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_uninit_shader
void sg_uninit_shader(Shader )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_update_buffer
void sg_update_buffer(Buffer , Range* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_update_image
void sg_update_image(Image , ImageData* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sg_wgpu_command_encoder
const(void)* sg_wgpu_command_encoder()

WebGPU: return this frame's WGPUCommandEncode

sg_wgpu_device
const(void)* sg_wgpu_device()

WebGPU: return WGPUDevice objec

sg_wgpu_query_attachments_info
WgpuAttachmentsInfo sg_wgpu_query_attachments_info(Attachments )

WebGPU: get internal pass resource object

sg_wgpu_query_buffer_info
WgpuBufferInfo sg_wgpu_query_buffer_info(Buffer )

WebGPU: get internal buffer resource object

sg_wgpu_query_image_info
WgpuImageInfo sg_wgpu_query_image_info(Image )

WebGPU: get internal image resource object

sg_wgpu_query_pipeline_info
WgpuPipelineInfo sg_wgpu_query_pipeline_info(Pipeline )

WebGPU: get internal pipeline resource object

sg_wgpu_query_sampler_info
WgpuSamplerInfo sg_wgpu_query_sampler_info(Sampler )

WebGPU: get internal sampler resource object

sg_wgpu_query_shader_info
WgpuShaderInfo sg_wgpu_query_shader_info(Shader )

WebGPU: get internal shader resource object

sg_wgpu_queue
const(void)* sg_wgpu_queue()

WebGPU: return WGPUQueue objec

sg_wgpu_render_pass_encoder
const(void)* sg_wgpu_render_pass_encoder()

WebGPU: return WGPURenderPassEncoder of current pas

shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.
uninitAttachments
void uninitAttachments(Attachments atts)
Undocumented in source. Be warned that the author may not have intended to support it.
uninitBuffer
void uninitBuffer(Buffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
uninitImage
void uninitImage(Image img)
Undocumented in source. Be warned that the author may not have intended to support it.
uninitPipeline
void uninitPipeline(Pipeline pip)
Undocumented in source. Be warned that the author may not have intended to support it.
uninitSampler
void uninitSampler(Sampler smp)
Undocumented in source. Be warned that the author may not have intended to support it.
uninitShader
void uninitShader(Shader shd)
Undocumented in source. Be warned that the author may not have intended to support it.
updateBuffer
void updateBuffer(Buffer buf, Range data)
Undocumented in source. Be warned that the author may not have intended to support it.
updateImage
void updateImage(Image img, ImageData data)
Undocumented in source. Be warned that the author may not have intended to support it.
wgpuCommandEncoder
const(void)* wgpuCommandEncoder()

WebGPU: return this frame's WGPUCommandEncode

wgpuDevice
const(void)* wgpuDevice()

WebGPU: return WGPUDevice objec

wgpuQueryAttachmentsInfo
WgpuAttachmentsInfo wgpuQueryAttachmentsInfo(Attachments atts)

WebGPU: get internal pass resource object

wgpuQueryBufferInfo
WgpuBufferInfo wgpuQueryBufferInfo(Buffer buf)

WebGPU: get internal buffer resource object

wgpuQueryImageInfo
WgpuImageInfo wgpuQueryImageInfo(Image img)

WebGPU: get internal image resource object

wgpuQueryPipelineInfo
WgpuPipelineInfo wgpuQueryPipelineInfo(Pipeline pip)

WebGPU: get internal pipeline resource object

wgpuQuerySamplerInfo
WgpuSamplerInfo wgpuQuerySamplerInfo(Sampler smp)

WebGPU: get internal sampler resource object

wgpuQueryShaderInfo
WgpuShaderInfo wgpuQueryShaderInfo(Shader shd)

WebGPU: get internal shader resource object

wgpuQueue
const(void)* wgpuQueue()

WebGPU: return WGPUQueue objec

wgpuRenderPassEncoder
const(void)* wgpuRenderPassEncoder()

WebGPU: return WGPURenderPassEncoder of current pas

Manifest constants

invalid_id
enum invalid_id;

various compile-time constants in the public AP various compile-time constants in the public AP

max_color_attachments
enum max_color_attachments;

various compile-time constants in the public AP

max_image_bindslots
enum max_image_bindslots;

various compile-time constants in the public AP

max_image_sampler_pairs
enum max_image_sampler_pairs;

various compile-time constants in the public AP

max_mipmaps
enum max_mipmaps;

various compile-time constants in the public AP

max_sampler_bindslots
enum max_sampler_bindslots;

various compile-time constants in the public AP

max_storagebuffer_bindslots
enum max_storagebuffer_bindslots;

various compile-time constants in the public AP

max_texturearray_layers
enum max_texturearray_layers;

various compile-time constants in the public AP

max_uniformblock_bindslots
enum max_uniformblock_bindslots;

various compile-time constants in the public AP

max_uniformblock_members
enum max_uniformblock_members;

various compile-time constants in the public AP

max_vertex_attributes
enum max_vertex_attributes;

various compile-time constants in the public AP

max_vertexbuffer_bindslots
enum max_vertexbuffer_bindslots;

various compile-time constants in the public AP

num_inflight_frames
enum num_inflight_frames;

various compile-time constants in the public AP

Structs

Allocator
struct Allocator

sg_allocator

AttachmentDesc
struct AttachmentDesc

sg_attachments_desc

Attachments
struct Attachments
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AttachmentsDesc
struct AttachmentsDesc
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AttachmentsInfo
struct AttachmentsInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Bindings
struct Bindings

sg_bindings

BlendState
struct BlendState
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Buffer
struct Buffer

Resource id typedefs:

BufferDesc
struct BufferDesc

sg_buffer_desc

BufferInfo
struct BufferInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Color
struct Color

sg_color

ColorAttachmentAction
struct ColorAttachmentAction

sg_pass_action

ColorTargetState
struct ColorTargetState
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
CommitListener
struct CommitListener

sg_commit_listener

D3d11AttachmentsInfo
struct D3d11AttachmentsInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
D3d11BufferInfo
struct D3d11BufferInfo

Backend-specific structs and functions, these may come in handy for mixing sokol-gfx rendering with 'native backend' rendering functions.

D3d11Environment
struct D3d11Environment
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
D3d11ImageInfo
struct D3d11ImageInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
D3d11PipelineInfo
struct D3d11PipelineInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
D3d11SamplerInfo
struct D3d11SamplerInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
D3d11ShaderInfo
struct D3d11ShaderInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
D3d11Swapchain
struct D3d11Swapchain
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
DepthAttachmentAction
struct DepthAttachmentAction
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
DepthState
struct DepthState
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Desc
struct Desc
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Environment
struct Environment
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
EnvironmentDefaults
struct EnvironmentDefaults

sg_desc

Features
struct Features

Runtime information about available optional features, returned by sg_query_features(

FrameStats
struct FrameStats
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsD3d11
struct FrameStatsD3d11
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsD3d11Bindings
struct FrameStatsD3d11Bindings
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsD3d11Draw
struct FrameStatsD3d11Draw
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsD3d11Pass
struct FrameStatsD3d11Pass
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsD3d11Pipeline
struct FrameStatsD3d11Pipeline
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsD3d11Uniforms
struct FrameStatsD3d11Uniforms
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsGl
struct FrameStatsGl

sg_frame_stats

FrameStatsMetal
struct FrameStatsMetal
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsMetalBindings
struct FrameStatsMetalBindings
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsMetalIdpool
struct FrameStatsMetalIdpool
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsMetalPipeline
struct FrameStatsMetalPipeline
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsMetalUniforms
struct FrameStatsMetalUniforms
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsWgpu
struct FrameStatsWgpu
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsWgpuBindings
struct FrameStatsWgpuBindings
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FrameStatsWgpuUniforms
struct FrameStatsWgpuUniforms
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GlAttachmentsInfo
struct GlAttachmentsInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GlBufferInfo
struct GlBufferInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GlImageInfo
struct GlImageInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GlSamplerInfo
struct GlSamplerInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GlShaderInfo
struct GlShaderInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GlSwapchain
struct GlSwapchain
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GlslShaderUniform
struct GlslShaderUniform
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Image
struct Image
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ImageData
struct ImageData

sg_image_data

ImageDesc
struct ImageDesc

sg_image_desc

ImageInfo
struct ImageInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Limits
struct Limits

Runtime information about resource limits, returned by sg_query_limit(

Logger
struct Logger

sg_logger

MetalEnvironment
struct MetalEnvironment
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MetalSwapchain
struct MetalSwapchain

sg_swapchain

MtlBufferInfo
struct MtlBufferInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MtlImageInfo
struct MtlImageInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MtlPipelineInfo
struct MtlPipelineInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MtlSamplerInfo
struct MtlSamplerInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MtlShaderInfo
struct MtlShaderInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Pass
struct Pass

sg_pass

PassAction
struct PassAction
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Pipeline
struct Pipeline
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
PipelineDesc
struct PipelineDesc
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
PipelineInfo
struct PipelineInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
PixelformatInfo
struct PixelformatInfo

Runtime information about a pixel format, returned by sg_query_pixelformat()

Range
struct Range

sg_range is a pointer-size-pair struct used to pass memory blobs into sokol-gfx. When initialized from a value type (array or struct), you can use the SG_RANGE() macro to build an sg_range struct. For functions which take either a sg_range pointer, or a (C++) sg_range reference, use the SG_RANGE_REF macro as a solution which compiles both in C and C++

Sampler
struct Sampler
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SamplerDesc
struct SamplerDesc

sg_sampler_desc

SamplerInfo
struct SamplerInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Shader
struct Shader
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderDesc
struct ShaderDesc
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderFunction
struct ShaderFunction
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderImage
struct ShaderImage
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderImageSamplerPair
struct ShaderImageSamplerPair
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderInfo
struct ShaderInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderSampler
struct ShaderSampler
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderStorageBuffer
struct ShaderStorageBuffer
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderUniformBlock
struct ShaderUniformBlock
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ShaderVertexAttr
struct ShaderVertexAttr
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SlotInfo
struct SlotInfo

sg_buffer_info sg_image_info sg_sampler_info sg_shader_info sg_pipeline_info sg_attachments_info

StencilAttachmentAction
struct StencilAttachmentAction
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
StencilFaceState
struct StencilFaceState
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
StencilState
struct StencilState
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Swapchain
struct Swapchain
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
TraceHooks
struct TraceHooks

sg_trace_hooks

VertexAttrState
struct VertexAttrState
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
VertexBufferLayoutState
struct VertexBufferLayoutState

sg_pipeline_desc

VertexLayoutState
struct VertexLayoutState
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuAttachmentsInfo
struct WgpuAttachmentsInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuBufferInfo
struct WgpuBufferInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuEnvironment
struct WgpuEnvironment
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuImageInfo
struct WgpuImageInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuPipelineInfo
struct WgpuPipelineInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuSamplerInfo
struct WgpuSamplerInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuShaderInfo
struct WgpuShaderInfo
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
WgpuSwapchain
struct WgpuSwapchain
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta