Luna::RHI::DepthStencilAttachment
Describes one depth stencil attachment when beginning a render pass.
struct Luna::RHI::DepthStencilAttachment
Member objects
-
The texture to bind for this attachment. The texture must have TextureUsageFlag::depth_stencil_attachment being set.
-
The load operation to perform for depth component when reading data from attachment.
-
The store operation to perform for depth component when writing data to attachment.
-
The load operation to perform for stencil component when reading data from attachment.
-
The store operation to perform for stencil component when writing data to attachment.
-
The depth clear value to use if
depth_load_op
is LoadOp::clear. Otherwise this value is ignored. -
The stencil clear value to use if
stencil_load_op
is LoadOp::clear. Otherwise this value is ignored. -
Whether this is a read-only depth stencil attachment.
-
The texture view type to view the texture as an attachment. If TextureViewType::unspecified is set, the system loads the texture's texture type as view type.
-
The format used for the texture view.
-
The mip slice used for the texture view.
-
The array slice used for the texture view.