gpu: correct DepthStencilState defaults
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e26ec2a685
commit
70f9e9eae6
1 changed files with 3 additions and 3 deletions
|
|
@ -586,8 +586,8 @@ pub const DepthStencilState = extern struct {
|
||||||
format: Texture.Format,
|
format: Texture.Format,
|
||||||
depth_write_enabled: bool = false,
|
depth_write_enabled: bool = false,
|
||||||
depth_compare: CompareFunction = .always,
|
depth_compare: CompareFunction = .always,
|
||||||
stencil_front: StencilFaceState,
|
stencil_front: StencilFaceState = .{},
|
||||||
stencil_back: StencilFaceState,
|
stencil_back: StencilFaceState = .{},
|
||||||
stencil_read_mask: u32 = 0xFFFFFFFF,
|
stencil_read_mask: u32 = 0xFFFFFFFF,
|
||||||
stencil_write_mask: u32 = 0xFFFFFFFF,
|
stencil_write_mask: u32 = 0xFFFFFFFF,
|
||||||
depth_bias: i32 = 0,
|
depth_bias: i32 = 0,
|
||||||
|
|
@ -605,7 +605,7 @@ pub const ImageCopyTexture = extern struct {
|
||||||
next_in_chain: ?*const ChainedStruct = null,
|
next_in_chain: ?*const ChainedStruct = null,
|
||||||
texture: *Texture,
|
texture: *Texture,
|
||||||
mip_level: u32 = 0,
|
mip_level: u32 = 0,
|
||||||
origin: Origin3D,
|
origin: Origin3D = .{},
|
||||||
aspect: Texture.Aspect = .all,
|
aspect: Texture.Aspect = .all,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue