LDKRHIPassColorAttachmentDesc
typedef struct LDKRHIPassColorAttachmentDesc{
LDKRHITexture texture;
uint32_t mip_level;
uint32_t layer;
LDKRHILoadOp load_op;
LDKRHIStoreOp store_op;
LDKRHIColor clear_color;
}LDKRHIPassColorAttachmentDesc;
typedef struct LDKRHIPassColorAttachmentDesc{
LDKRHITexture texture;
uint32_t mip_level;
uint32_t layer;
LDKRHILoadOp load_op;
LDKRHIStoreOp store_op;
LDKRHIColor clear_color;
}LDKRHIPassColorAttachmentDesc;
typedef struct LDKRHIPassDepthAttachmentDesc{
bool valid;
LDKRHITexture texture;
uint32_t mip_level;
uint32_t layer;
LDKRHILoadOp depth_load_op;
LDKRHIStoreOp depth_store_op;
float clear_depth;
uint32_t clear_stencil;
}LDKRHIPassDepthAttachmentDesc;
typedef struct LDKRHIPassDesc{
uint32_t color_attachment_count;
LDKRHIPassColorAttachmentDesc color_attachments[LDK_RHI_COLOR_ATTACHMENT_MAX];
LDKRHIPassDepthAttachmentDesc depth_attachment;
bool has_viewport;
LDKRHIViewport viewport;
bool has_scissor;
LDKRHIRect scissor;
}LDKRHIPassDesc;
Validates a pass descriptor.
LDK_API bool ldk_rhi_is_valid_pass_desc(const LDKRHIPassDesc *desc);
const LDKRHIPassDesc *desctrue if valid, false otherwise.
Begins a rendering pass.
LDK_API void ldk_rhi_pass_begin(
LDKRHIContext *context,
const LDKRHIPassDesc *desc
);
LDKRHIContext *contextconst LDKRHIPassDesc *descInitializes a pass descriptor with default values.
LDK_API void ldk_rhi_pass_desc_defaults(LDKRHIPassDesc *desc);
LDKRHIPassDesc *descEnds the current rendering pass.
LDK_API void ldk_rhi_pass_end(LDKRHIContext *context);
LDKRHIContext *context