Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
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
wine
vkd3d
Commits
c3555a34
Commit
c3555a34
authored
2 months ago
by
Conor McCarthy
Committed by
Henri Verbeet
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
tests/hlsl: Add structured buffer UAV 16-bit tests.
parent
504bdcc8
Branches
Branches containing commit
Tags
vkd3d-1.14
Tags containing commit
1 merge request
!1374
tests/hlsl: Native 16-bit tests part 3.
Pipeline
#37747
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/hlsl/uav-rwstructuredbuffer.shader_test
+183
-0
183 additions, 0 deletions
tests/hlsl/uav-rwstructuredbuffer.shader_test
with
183 additions
and
0 deletions
tests/hlsl/uav-rwstructuredbuffer.shader_test
+
183
−
0
View file @
c3555a34
...
...
@@ -178,3 +178,186 @@ float4 main() : sv_target1
todo(sm<6) draw quad
probe uav 2 (0) ri (11)
probe uav 2 (1) ri (12)
[require]
shader model >= 6.2
native-16-bit
[uav 2]
stride 6
size (buffer, 2)
0 0 0
[compute shader]
struct foo
{
half h;
int16_t i;
uint16_t u;
};
RWStructuredBuffer<foo> u : register(u2);
[numthreads(1, 1, 1)]
void main()
{
struct foo f0 = {11.125, -12, 13};
struct foo f1 = {12.25, 13, 0xfff2};
u[0] = f0;
u[1] = f1;
}
[test]
dispatch 1 1 1
probe uav 2 (0) rui(0xfff44990)
probe uav 2 (1) rui(0x4a20000d)
probe uav 2 (2) rui(0xfff2000d)
[uav 2]
stride 12
size (buffer, 2)
0 0 0 0 0 0
[compute shader]
struct foo
{
half2 h;
int16_t2 i;
uint16_t2 u;
};
RWStructuredBuffer<foo> u : register(u2);
[numthreads(1, 1, 1)]
void main()
{
struct foo f0 = {11.125, 12.25, -12, 13, 14, 0xfff1};
struct foo f1 = {13.375, 14.5, -16, 17, 18, 0xffeb};
u[0] = f0;
u[1] = f1;
}
[test]
dispatch 1 1 1
probe uav 2 (0) rui(0x4a204990)
probe uav 2 (1) rui(0x000dfff4)
probe uav 2 (2) rui(0xfff1000e)
probe uav 2 (3) rui(0x4b404ab0)
probe uav 2 (4) rui(0x0011fff0)
probe uav 2 (5) rui(0xffeb0012)
[uav 2]
stride 12
size (buffer, 2)
0 0 0 0 0 0
[compute shader]
struct foo
{
half h;
int16_t i;
uint32_t u;
uint16_t2 s;
};
RWStructuredBuffer<foo> u : register(u2);
[numthreads(1, 1, 1)]
void main()
{
struct foo f0 = {11.125, -12, 13, 1, 2};
struct foo f1 = {12.25, 13, 0xfffffff2, 3, 4};
u[0] = f0;
u[1] = f1;
}
[test]
dispatch 1 1 1
probe uav 2 (0) rui(0xfff44990)
probe uav 2 (1) rui(13)
probe uav 2 (2) rui(0x20001)
probe uav 2 (3) rui(0x000d4a20)
probe uav 2 (4) rui(0xfffffff2)
probe uav 2 (5) rui(0x40003)
[uav 2]
stride 16
size (buffer, 2)
0 0 0 0 0 0 0 0
[compute shader]
struct foo
{
half h;
uint32_t u;
uint16_t4 s;
};
RWStructuredBuffer<foo> u : register(u2);
[numthreads(1, 1, 1)]
void main()
{
struct foo f0 = {11.125, 3, -12, 13, 1, 2};
struct foo f1 = {12.25, 5, 13, 0xfffffff2, 3, 4};
u[0] = f0;
u[1] = f1;
}
[test]
dispatch 1 1 1
probe uav 2 (0) rui(0x4990)
probe uav 2 (1) rui(3)
probe uav 2 (2) rui(0xdfff4)
probe uav 2 (3) rui(0x20001)
probe uav 2 (4) rui(0x4a20)
probe uav 2 (5) rui(5)
probe uav 2 (6) rui(0xfff2000d)
probe uav 2 (7) rui(0x40003)
[require]
shader model >= 6.2
native-16-bit
float64
[uav 2]
stride 24
size (buffer, 2)
0 0 0 0 0 0 0 0 0 0 0 0
[compute shader]
struct foo
{
half h;
double d;
uint16_t u;
};
RWStructuredBuffer<foo> u : register(u2);
[numthreads(1, 1, 1)]
void main()
{
struct foo f0 = {11.125, 5.25, 13};
struct foo f1 = {12.25, -4.25, 15};
u[0] = f0;
u[1] = f1;
}
[test]
dispatch 1 1 1
probe uav 2 (0) rui(0x4990)
probe uav 2 (1) rui(0)
probe uav 2 (1) rd(5.25)
probe uav 2 (4) rui(13)
probe uav 2 (5) rui(0)
probe uav 2 (6) rui(0x4a20)
probe uav 2 (7) rui(0)
probe uav 2 (4) rd(-4.25)
probe uav 2 (10) rui(15)
probe uav 2 (11) rui(0)
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