mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-23 07:21:31 +11:00
Gfx update, depth bounds and blend constants
This commit is contained in:
parent
fa5a78d60c
commit
08352676da
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -252,7 +252,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-dx12"
|
name = "gfx-backend-dx12"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#f10a8fb4eda0e899a9e3e35777ebf0517b0fc77d"
|
source = "git+https://github.com/gfx-rs/gfx#8d2b93a8dfd9c99b7cbec703924a628d56cc9c73"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"derivative 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"derivative 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -268,7 +268,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-metal"
|
name = "gfx-backend-metal"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#f10a8fb4eda0e899a9e3e35777ebf0517b0fc77d"
|
source = "git+https://github.com/gfx-rs/gfx#8d2b93a8dfd9c99b7cbec703924a628d56cc9c73"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"block 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"block 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cocoa 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cocoa 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -288,7 +288,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-vulkan"
|
name = "gfx-backend-vulkan"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#f10a8fb4eda0e899a9e3e35777ebf0517b0fc77d"
|
source = "git+https://github.com/gfx-rs/gfx#8d2b93a8dfd9c99b7cbec703924a628d56cc9c73"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ash 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"ash 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -306,7 +306,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-hal"
|
name = "gfx-hal"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#f10a8fb4eda0e899a9e3e35777ebf0517b0fc77d"
|
source = "git+https://github.com/gfx-rs/gfx#8d2b93a8dfd9c99b7cbec703924a628d56cc9c73"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -2715,18 +2715,19 @@ pub extern "C" fn gfxCmdSetDepthBias(
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
pub extern "C" fn gfxCmdSetBlendConstants(
|
pub extern "C" fn gfxCmdSetBlendConstants(
|
||||||
_commandBuffer: VkCommandBuffer,
|
mut commandBuffer: VkCommandBuffer,
|
||||||
_blendConstants: *const f32,
|
blendConstants: *const f32,
|
||||||
) {
|
) {
|
||||||
unimplemented!()
|
let value = unsafe { *(blendConstants as *const hal::pso::ColorValue) };
|
||||||
|
commandBuffer.set_blend_constants(value);
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
pub extern "C" fn gfxCmdSetDepthBounds(
|
pub extern "C" fn gfxCmdSetDepthBounds(
|
||||||
_commandBuffer: VkCommandBuffer,
|
mut commandBuffer: VkCommandBuffer,
|
||||||
_minDepthBounds: f32,
|
minDepthBounds: f32,
|
||||||
_maxDepthBounds: f32,
|
maxDepthBounds: f32,
|
||||||
) {
|
) {
|
||||||
unimplemented!()
|
commandBuffer.set_depth_bounds(minDepthBounds .. maxDepthBounds);
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
pub extern "C" fn gfxCmdSetStencilCompareMask(
|
pub extern "C" fn gfxCmdSetStencilCompareMask(
|
||||||
|
|
Loading…
Reference in a new issue