rs: make runtimeconfig copy/debug

This commit is contained in:
chyyran 2023-02-04 20:20:30 -05:00
parent 4837b3c7d7
commit cf2786fc97
2 changed files with 4 additions and 3 deletions

View file

@ -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"

View file

@ -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,