From 3d00c80b6b5b54da5c1ccdad9f05534a48bca39f Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 3 Aug 2024 16:59:24 +1000 Subject: more work o nrust bindings --- src/ral/ral_impl.h | 1 + src/ral/ral_types.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2