Merge pull request #65 from grovesNL/dynamic-states
Add more dynamic states
This commit is contained in:
commit
3c630a6b74
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ash"
|
name = "ash"
|
||||||
version = "0.24.2"
|
version = "0.24.3"
|
||||||
authors = ["maik klein <maikklein@googlemail.com>"]
|
authors = ["maik klein <maikklein@googlemail.com>"]
|
||||||
description = "Vulkan bindings for Rust"
|
description = "Vulkan bindings for Rust"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -795,6 +795,21 @@ pub trait DeviceV1_0 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_set_depth_bias(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
constant_factor: f32,
|
||||||
|
clamp: f32,
|
||||||
|
slope_factor: f32,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_set_depth_bias(
|
||||||
|
command_buffer,
|
||||||
|
constant_factor,
|
||||||
|
clamp,
|
||||||
|
slope_factor,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_set_blend_constants(
|
unsafe fn cmd_set_blend_constants(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -814,6 +829,26 @@ pub trait DeviceV1_0 {
|
||||||
.cmd_set_depth_bounds(command_buffer, min_depth_bounds, max_depth_bounds);
|
.cmd_set_depth_bounds(command_buffer, min_depth_bounds, max_depth_bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_set_stencil_compare_mask(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
face_mask: vk::StencilFaceFlags,
|
||||||
|
compare_mask: u32,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0()
|
||||||
|
.cmd_set_stencil_compare_mask(command_buffer, face_mask, compare_mask);
|
||||||
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_set_stencil_write_mask(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
face_mask: vk::StencilFaceFlags,
|
||||||
|
write_mask: u32,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0()
|
||||||
|
.cmd_set_stencil_write_mask(command_buffer, face_mask, write_mask);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_set_stencil_reference(
|
unsafe fn cmd_set_stencil_reference(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
|
Loading…
Reference in a new issue