diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-03 16:59:24 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-03 16:59:24 +1000 |
commit | 3d00c80b6b5b54da5c1ccdad9f05534a48bca39f (patch) | |
tree | bd41bcd3983463cf977cb304db252c40de477b54 /src | |
parent | 1b2d2f2b4ae67fb0fd10f52891eae3a6a2b24c16 (diff) |
more work o nrust bindings
Diffstat (limited to 'src')
-rw-r--r-- | src/ral/ral_impl.h | 1 | ||||
-rw-r--r-- | src/ral/ral_types.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ral/ral_impl.h b/src/ral/ral_impl.h index 20b9757..51d1066 100644 --- a/src/ral/ral_impl.h +++ b/src/ral/ral_impl.h @@ -74,6 +74,7 @@ void copy_buffer_to_image_oneshot(BufferHandle src, TextureHandle dst); // --- Render commands PUB void GPU_EncodeBindPipeline(GPU_CmdEncoder* encoder, GPU_Pipeline* pipeline); PUB void GPU_EncodeBindShaderData(GPU_CmdEncoder* encoder, u32 group, ShaderData data); +PUB void GPU_EncodeBindShaderDataRaw(GPU_CmdEncoder* encoder, u32 group, ShaderDataLayout layout, const char* data); void GPU_EncodeSetDefaults(GPU_CmdEncoder* encoder); PUB void GPU_EncodeSetVertexBuffer(GPU_CmdEncoder* encoder, BufferHandle buf); PUB void GPU_EncodeSetIndexBuffer(GPU_CmdEncoder* encoder, BufferHandle buf); diff --git a/src/ral/ral_types.h b/src/ral/ral_types.h index c950fe2..8a73041 100644 --- a/src/ral/ral_types.h +++ b/src/ral/ral_types.h @@ -246,6 +246,8 @@ typedef struct GraphicsPipelineDesc { bool depth_test; } GraphicsPipelineDesc; +bool GraphicsPipelineDesc_AddShaderDataLayout(GraphicsPipelineDesc* desc, ShaderDataLayout layout); + typedef struct GPU_RenderpassDesc { bool default_framebuffer; bool has_color_target; |