Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vkd3d
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Francisco Casas
vkd3d
Commits
8f19d025
Commit
8f19d025
authored
1 month ago
by
Shaun Ren
Committed by
Henri Verbeet
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
tests: Add a signature reflection test for geometry shader inputs.
parent
62c00be8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/hlsl_d3d12.c
+25
-0
25 additions, 0 deletions
tests/hlsl_d3d12.c
with
25 additions
and
0 deletions
tests/hlsl_d3d12.c
+
25
−
0
View file @
8f19d025
...
...
@@ -2932,6 +2932,30 @@ static void test_signature_reflection(void)
{
"sv_tessfactor"
,
1
,
1
,
D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR
,
D3D_REGISTER_COMPONENT_FLOAT32
,
0x1
},
};
static
const
char
gs1_source
[]
=
"struct gs_data
\n
"
"{
\n
"
" float4 x : sv_position;
\n
"
" float4 y : position;
\n
"
" float4 apple : apple;
\n
"
"};
\n
"
"
\n
"
"[maxvertexcount(4)]
\n
"
"void main(
\n
"
" in line gs_data vin[2],
\n
"
" in uint primid : sv_primitiveid,
\n
"
" in uint gsid : sv_gsinstanceid)
\n
"
"{
\n
"
"}
\n
"
;
static
const
D3D12_SIGNATURE_PARAMETER_DESC
gs1_inputs
[]
=
{
{
"sv_position"
,
0
,
0
,
D3D_NAME_POSITION
,
D3D_REGISTER_COMPONENT_FLOAT32
,
0xf
},
{
"position"
,
0
,
1
,
D3D_NAME_UNDEFINED
,
D3D_REGISTER_COMPONENT_FLOAT32
,
0xf
},
{
"apple"
,
0
,
2
,
D3D_NAME_UNDEFINED
,
D3D_REGISTER_COMPONENT_FLOAT32
,
0xf
},
{
"sv_primitiveid"
,
0
,
~
0u
,
D3D_NAME_PRIMITIVE_ID
,
D3D_REGISTER_COMPONENT_UINT32
,
0x1
},
};
static
const
struct
{
const
char
*
source
;
...
...
@@ -2979,6 +3003,7 @@ static void test_signature_reflection(void)
{
ds2_source
,
"ds_5_0"
,
false
,
NULL
,
0
,
ds2_outputs
,
ARRAY_SIZE
(
ds2_outputs
),
ds2_patch_constants
,
ARRAY_SIZE
(
ds2_patch_constants
)},
{
ds3_source
,
"ds_5_0"
,
false
,
NULL
,
0
,
ds3_outputs
,
ARRAY_SIZE
(
ds3_outputs
),
ds3_patch_constants
,
ARRAY_SIZE
(
ds3_patch_constants
)},
{
ds4_source
,
"ds_5_0"
,
false
,
ds4_inputs
,
ARRAY_SIZE
(
ds4_inputs
),
ds4_outputs
,
ARRAY_SIZE
(
ds4_outputs
),
ds4_patch_constants
,
ARRAY_SIZE
(
ds4_patch_constants
)},
{
gs1_source
,
"gs_4_0"
,
false
,
gs1_inputs
,
ARRAY_SIZE
(
gs1_inputs
)},
};
for
(
unsigned
int
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment