wisdom
Loading...
Searching...
No Matches
WisDepthStencilFlags Struct Reference

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef enum WisDepthStencilFlags {
WisDepthStencilFlagsNone = 0,
WisDepthStencilFlagsIgnoreDepth = (1u << 0),
WisDepthStencilFlagsIgnoreStencil = (1u << 1),
WisDepthStencilFlagsReadOnlyDepth = (1u << 2),
WisDepthStencilFlagsReadOnlyStencil = (1u << 3),

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
enum class DepthStencilFlags : uint32_t {
None = 0,
IgnoreDepth = (1u << 0),
IgnoreStencil = (1u << 1),
ReadOnlyDepth = (1u << 2),
ReadOnlyStencil = (1u << 3),
};
}

Description


Depth stencil select flags. Affect which part of the depth stencil buffer is used.

Values:

  • WisDepthStencilFlagsNone = 0: No flags set. Both attachments are write.
  • WisDepthStencilFlagsIgnoreDepth = (1 << 0): Don't use depth part of the depth stencil buffer.
  • WisDepthStencilFlagsIgnoreStencil = (1 << 1): Don't use stencil part of the depth stencil buffer.
  • WisDepthStencilFlagsReadOnlyDepth = (1 << 2): Depth part is read only. Texture must be in either read state, depending on the format.
  • WisDepthStencilFlagsReadOnlyStencil = (1 << 3): Stencil part is read only. Texture must be in either read state, depending on the format.

See Also


See also
Structs: WisRenderPassDepthStencilDesc