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