Merge pull request from grovesNL/dynamic-states

Add more dynamic states
This commit is contained in:
Maik Klein 2018-05-28 08:12:36 +02:00 committed by GitHub
commit 3c630a6b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "ash"
version = "0.24.2"
version = "0.24.3"
authors = ["maik klein <maikklein@googlemail.com>"]
description = "Vulkan bindings for Rust"
license = "MIT"

View file

@ -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(
&self,
command_buffer: vk::CommandBuffer,
@ -814,6 +829,26 @@ pub trait DeviceV1_0 {
.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(
&self,
command_buffer: vk::CommandBuffer,