test(gpu): use the SDK root parameter in the serializer fixture

This commit is contained in:
Jeremy Goldberg committed 2026-11-23 18:27:12 -05:00
1 parent 1dd7afd4e6
commit 29b558c263
1 file changed
+14 -14
+14 -14
View File
@@ -221,20 +221,20 @@ mod tests {
#[cfg(windows)] #[cfg(windows)]
#[test] #[test]
fn host_serialized_blobs_create_root_signatures() { fn host_serialized_blobs_create_root_signatures() {
#[repr(C)] use windows::Win32::Graphics::Direct3D12::{
struct Constants { D3D12_ROOT_CONSTANTS, D3D12_ROOT_PARAMETER, D3D12_ROOT_PARAMETER_0,
kind: u32, D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS, D3D12_SHADER_VISIBILITY_ALL,
register: u32, };
space: u32, let parameter = D3D12_ROOT_PARAMETER {
count: u32, ParameterType: D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS,
visibility: u32, Anonymous: D3D12_ROOT_PARAMETER_0 {
} Constants: D3D12_ROOT_CONSTANTS {
let parameter = Constants { ShaderRegister: 0,
kind: 1, RegisterSpace: 0,
register: 0, Num32BitValues: 1,
space: 0, },
count: 1, },
visibility: 0, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL,
}; };
let desc = Desc { let desc = Desc {
parameter_count: 1, parameter_count: 1,