mirror of
https://github.com/italicsjenga/spirv-to-dxil-rs.git
synced 2024-12-23 19:41:29 +11:00
rs: make runtimeconfig copy/debug
This commit is contained in:
parent
4837b3c7d7
commit
cf2786fc97
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "spirv-to-dxil"
|
name = "spirv-to-dxil"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Rust bindings to spirv-to-dxil"
|
description = "Rust bindings to spirv-to-dxil"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
/// Configuration options for CBVs
|
/// Configuration options for CBVs
|
||||||
#[derive(Default)]
|
#[derive(Default, Debug, Clone)]
|
||||||
pub struct ConstantBufferConfig {
|
pub struct ConstantBufferConfig {
|
||||||
pub register_space: u32,
|
pub register_space: u32,
|
||||||
pub base_shader_register: u32,
|
pub base_shader_register: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Configuration options for SPIR-V YZ flip mode.
|
/// Configuration options for SPIR-V YZ flip mode.
|
||||||
#[derive(Default)]
|
#[derive(Default, Debug, Clone)]
|
||||||
pub struct FlipConfig {
|
pub struct FlipConfig {
|
||||||
pub mode: crate::FlipMode,
|
pub mode: crate::FlipMode,
|
||||||
pub y_mask: u16,
|
pub y_mask: u16,
|
||||||
pub z_mask: u16,
|
pub z_mask: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
/// Runtime configuration options for the SPIR-V compilation.
|
/// Runtime configuration options for the SPIR-V compilation.
|
||||||
pub struct RuntimeConfig {
|
pub struct RuntimeConfig {
|
||||||
pub runtime_data_cbv: ConstantBufferConfig,
|
pub runtime_data_cbv: ConstantBufferConfig,
|
||||||
|
|
Loading…
Reference in a new issue