Struct in ldk_rhi.h

LDKRHIPassDepthAttachmentDesc

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;
Function in ldk_rhi.h

ldk_rhi_is_valid_pass_desc

Validates a pass descriptor.

LDK_API bool ldk_rhi_is_valid_pass_desc(const LDKRHIPassDesc *desc);

Parameters

const LDKRHIPassDesc *desc
Descriptor to validate.

Returns

true if valid, false otherwise.

Function in ldk_rhi.h

ldk_rhi_pass_desc_defaults

Initializes a pass descriptor with default values.

LDK_API void ldk_rhi_pass_desc_defaults(LDKRHIPassDesc *desc);

Parameters

LDKRHIPassDesc *desc
Pointer to the descriptor to initialize.