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
fb751b48
Commit
fb751b48
authored
2 years ago
by
Francisco Casas
Committed by
Alexandre Julliard
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests: Add additional tests for implicit casts that should fail.
parent
0a345a2b
No related branches found
No related tags found
1 merge request
!35
vkd3d-shader/hlsl: Support complex implicit casts, complex explicit casts and complex broadcasts. (PART 2/3 v2)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/cast-componentwise-equal.shader_test
+90
-0
90 additions, 0 deletions
tests/cast-componentwise-equal.shader_test
with
90 additions
and
0 deletions
tests/cast-componentwise-equal.shader_test
+
90
−
0
View file @
fb751b48
...
...
@@ -224,3 +224,93 @@ float4 main() : sv_target
b = a;
return b.bb;
}
[pixel shader fail todo]
float main() : SV_TARGET
{
float arr[3] = {1, 2, 3};
float v;
v = arr;
return 0;
}
[pixel shader fail todo]
float main() : SV_TARGET
{
float2 arr[3] = {1, 2, 3, 4, 5, 6};
float2 vec;
vec = arr;
return 0;
}
[pixel shader fail todo]
float4 main() : SV_TARGET
{
int arr1[4] = {1, 2, 3, 4};
float arr2[4];
arr2 = arr1;
return 0;
}
[pixel shader fail]
float4 main() : SV_TARGET
{
float2x2 mat = {1, 2, 3, 4};
float3 vec;
vec = mat;
return 0;
}
[pixel shader fail todo]
float4 main() : SV_TARGET
{
float4 f = {1, 2, 3, 4};
float arr[4];
arr = f;
return 0;
}
[pixel shader fail todo]
float4 main() : SV_TARGET
{
float arr[4] = {1, 2, 3, 4};
float4 f;
f = arr;
return 0;
}
[pixel shader fail]
float4 main() : SV_TARGET
{
float3x2 mat1 = {1, 2, 3, 4, 5, 6};
float2x3 mat2;
mat2 = mat1;
return 0;
}
[pixel shader fail]
struct apple {
float aa;
};
float4 main() : SV_TARGET
{
struct apple a = 3.0;
return 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