Skip to content

KDGpu::RenderPassCommandRecorderOptions

Module: Public API

Legacy render pass options (deprecated in favor of dynamic rendering) More...

#include <KDGpu/render_pass_command_recorder_options.h>

Public Attributes

Name
std::vector< ColorAttachment > colorAttachments
Color render targets.
DepthStencilAttachment depthStencilAttachment
Depth/stencil target.
SampleCountFlagBits samples
Sample count for MSAA.
uint32_t viewCount
Number of views for multiview rendering (e.g., 2 for VR stereo)
uint32_t framebufferWidth
Framebuffer width (0 = infer from first attachment)
uint32_t framebufferHeight
Framebuffer height (0 = infer from first attachment)
uint32_t framebufferArrayLayers
Array layers (0 = infer from first attachment)

Detailed Description

1
struct KDGpu::RenderPassCommandRecorderOptions;

Legacy render pass options (deprecated in favor of dynamic rendering)

Deprecated:

Use RenderPassCommandRecorderWithDynamicRenderingOptions for new code

See: RenderPassCommandRecorderWithDynamicRenderingOptions

This struct is maintained for compatibility but RenderPassCommandRecorderWithDynamicRenderingOptions is preferred for new code on desktop platforms. It uses dynamic rendering which was promoted to Vulkan 1.3 core.

Public Attributes Documentation

variable colorAttachments

1
std::vector< ColorAttachment > colorAttachments;

Color render targets.

variable depthStencilAttachment

1
DepthStencilAttachment depthStencilAttachment;

Depth/stencil target.

variable samples

1
SampleCountFlagBits samples { SampleCountFlagBits::Samples1Bit };

Sample count for MSAA.

variable viewCount

1
uint32_t viewCount { 1 };

Number of views for multiview rendering (e.g., 2 for VR stereo)

variable framebufferWidth

1
uint32_t framebufferWidth { 0 };

Framebuffer width (0 = infer from first attachment)

variable framebufferHeight

1
uint32_t framebufferHeight { 0 };

Framebuffer height (0 = infer from first attachment)

variable framebufferArrayLayers

1
uint32_t framebufferArrayLayers { 0 };

Array layers (0 = infer from first attachment)


Updated on 2026-03-31 at 00:02:06 +0000