pub struct PipelineDepthStencilStateCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineDepthStencilStateCreateFlags,
pub depth_test_enable: Bool32,
pub depth_write_enable: Bool32,
pub depth_compare_op: CompareOp,
pub depth_bounds_test_enable: Bool32,
pub stencil_test_enable: Bool32,
pub front: StencilOpState,
pub back: StencilOpState,
pub min_depth_bounds: f32,
pub max_depth_bounds: f32,
/* private fields */
}Expand description
Native structure VkPipelineDepthStencilStateCreateInfo.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
flags: PipelineDepthStencilStateCreateFlagsNative field flags.
depth_test_enable: Bool32Native field depthTestEnable.
depth_write_enable: Bool32Native field depthWriteEnable.
depth_compare_op: CompareOpNative field depthCompareOp.
depth_bounds_test_enable: Bool32Native field depthBoundsTestEnable.
stencil_test_enable: Bool32Native field stencilTestEnable.
front: StencilOpStateNative field front.
back: StencilOpStateNative field back.
min_depth_bounds: f32Native field minDepthBounds.
max_depth_bounds: f32Native field maxDepthBounds.
Implementations§
Source§impl<'a> PipelineDepthStencilStateCreateInfo<'a>
impl<'a> PipelineDepthStencilStateCreateInfo<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_flags(self, value: PipelineDepthStencilStateCreateFlags) -> Self
pub fn set_flags(self, value: PipelineDepthStencilStateCreateFlags) -> Self
Set native field flags without native effects.
Sourcepub fn set_depth_test_enable(self, value: Bool32) -> Self
pub fn set_depth_test_enable(self, value: Bool32) -> Self
Set native field depthTestEnable without native effects.
Sourcepub fn set_depth_write_enable(self, value: Bool32) -> Self
pub fn set_depth_write_enable(self, value: Bool32) -> Self
Set native field depthWriteEnable without native effects.
Sourcepub fn set_depth_compare_op(self, value: CompareOp) -> Self
pub fn set_depth_compare_op(self, value: CompareOp) -> Self
Set native field depthCompareOp without native effects.
Sourcepub fn set_depth_bounds_test_enable(self, value: Bool32) -> Self
pub fn set_depth_bounds_test_enable(self, value: Bool32) -> Self
Set native field depthBoundsTestEnable without native effects.
Sourcepub fn set_stencil_test_enable(self, value: Bool32) -> Self
pub fn set_stencil_test_enable(self, value: Bool32) -> Self
Set native field stencilTestEnable without native effects.
Sourcepub fn set_front(self, value: StencilOpState) -> Self
pub fn set_front(self, value: StencilOpState) -> Self
Set native field front without native effects.
Sourcepub fn set_back(self, value: StencilOpState) -> Self
pub fn set_back(self, value: StencilOpState) -> Self
Set native field back without native effects.
Sourcepub fn set_min_depth_bounds(self, value: f32) -> Self
pub fn set_min_depth_bounds(self, value: f32) -> Self
Set native field minDepthBounds without native effects.
Sourcepub fn set_max_depth_bounds(self, value: f32) -> Self
pub fn set_max_depth_bounds(self, value: f32) -> Self
Set native field maxDepthBounds without native effects.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
§Errors
Returns a construction error for a changed structure tag or already-linked node.