gpu: add DepthStencilState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7a8f1b0cf9
commit
9b615f212d
2 changed files with 14 additions and 14 deletions
|
|
@ -1,17 +1,3 @@
|
||||||
pub const DepthStencilState = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
format: TextureFormat,
|
|
||||||
depth_write_enabled: bool,
|
|
||||||
depth_compare: CompareFunction,
|
|
||||||
stencil_front: StencilFaceState,
|
|
||||||
stencil_back: StencilFaceState,
|
|
||||||
stencil_read_mask: u32,
|
|
||||||
stencil_write_mask: u32,
|
|
||||||
depth_bias: i32,
|
|
||||||
depth_bias_slope_scale: f32,
|
|
||||||
depth_bias_clamp: f32,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const ImageCopyBuffer = extern struct {
|
pub const ImageCopyBuffer = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
layout: TextureDataLayout,
|
layout: TextureDataLayout,
|
||||||
|
|
|
||||||
|
|
@ -520,6 +520,20 @@ pub const CompilationInfo = extern struct {
|
||||||
messages: [*]const CompilationMessage,
|
messages: [*]const CompilationMessage,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const DepthStencilState = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
format: Texture.Format,
|
||||||
|
depth_write_enabled: bool,
|
||||||
|
depth_compare: CompareFunction,
|
||||||
|
stencil_front: StencilFaceState,
|
||||||
|
stencil_back: StencilFaceState,
|
||||||
|
stencil_read_mask: u32,
|
||||||
|
stencil_write_mask: u32,
|
||||||
|
depth_bias: i32,
|
||||||
|
depth_bias_slope_scale: f32,
|
||||||
|
depth_bias_clamp: f32,
|
||||||
|
};
|
||||||
|
|
||||||
test "BackendType name" {
|
test "BackendType name" {
|
||||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue