LDKRHIPipeline
typedef LDKRHIResource LDKRHIPipeline;
typedef LDKRHIResource LDKRHIPipeline;
typedef struct LDKRHIPipelineDesc{
LDKRHIShaderModule vertex_shader_module;
LDKRHIShaderModule fragment_shader_module;
LDKRHIBindingsLayout bindings_layout;
LDKRHIPrimitiveTopology topology;
LDKRHIBlendState blend_state;
LDKRHIDepthState depth_state;
LDKRHIRasterState raster_state;
LDKRHIVertexBufferLayoutDesc vertex_layout;
uint32_t vertex_buffer_layout_count;
LDKRHIVertexBufferLayoutDesc vertex_buffer_layouts[LDK_RHI_VERTEX_BUFFER_LAYOUT_MAX];
uint32_t color_attachment_count;
LDKRHIFormat color_formats[LDK_RHI_COLOR_ATTACHMENT_MAX];
LDKRHIFormat depth_format;
}LDKRHIPipelineDesc;
Checks if a pipeline handle is valid.
LDK_API bool ldk_rhi_is_valid_pipeline(LDKRHIPipeline pipeline);
LDKRHIPipeline pipelinetrue if valid, false otherwise.
Validates a pipeline descriptor.
LDK_API bool ldk_rhi_is_valid_pipeline_desc(const LDKRHIPipelineDesc *desc);
const LDKRHIPipelineDesc *desctrue if valid, false otherwise.
Binds a pipeline.
LDK_API void ldk_rhi_pipeline_bind(
LDKRHIContext *context,
LDKRHIPipeline pipeline
);
LDKRHIContext *contextLDKRHIPipeline pipelineCreates a pipeline.
LDK_API LDKRHIPipeline ldk_rhi_pipeline_create(
LDKRHIContext *context,
const LDKRHIPipelineDesc *desc
);
LDKRHIContext *contextconst LDKRHIPipelineDesc *descA valid pipeline handle on success, or an invalid handle on failure.
Initializes a pipeline descriptor with default values.
LDK_API void ldk_rhi_pipeline_desc_defaults(LDKRHIPipelineDesc *desc);
LDKRHIPipelineDesc *descDestroys a pipeline.
LDK_API void ldk_rhi_pipeline_destroy(
LDKRHIContext *context,
LDKRHIPipeline pipeline
);
LDKRHIContext *contextLDKRHIPipeline pipeline