Merge pull request #36 from jeremygold02/codex/root-parameter-fixture
test(gpu): use the SDK root parameter in the serializer fixture
This commit is contained in:
1 file changed
+14
-14
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user