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
1e10b5e6
Commit
1e10b5e6
authored
2 years ago
by
Elizabeth Figura
Committed by
Alexandre Julliard
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vkd3d-shader/hlsl: Write SM4 reinterpret instructions.
parent
2d4d2e12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!25
vkd3d-shader/hlsl: Implement asuint() and completely move init_node() to hlsl.c.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libs/vkd3d-shader/hlsl_sm4.c
+4
-0
4 additions, 0 deletions
libs/vkd3d-shader/hlsl_sm4.c
tests/asuint.shader_test
+2
-2
2 additions, 2 deletions
tests/asuint.shader_test
with
6 additions
and
2 deletions
libs/vkd3d-shader/hlsl_sm4.c
+
4
−
0
View file @
1e10b5e6
...
...
@@ -1664,6 +1664,10 @@ static void write_sm4_expr(struct hlsl_ctx *ctx,
}
break
;
case
HLSL_OP1_REINTERPRET
:
write_sm4_unary_op
(
buffer
,
VKD3D_SM4_OP_MOV
,
&
expr
->
node
,
arg1
,
0
);
break
;
case
HLSL_OP1_ROUND
:
assert
(
type_is_float
(
dst_type
));
write_sm4_unary_op
(
buffer
,
VKD3D_SM4_OP_ROUND_NE
,
&
expr
->
node
,
arg1
,
0
);
...
...
This diff is collapsed.
Click to expand it.
tests/asuint.shader_test
+
2
−
2
View file @
1e10b5e6
...
...
@@ -16,7 +16,7 @@ float4 main(uniform float f, uniform int i, uniform uint u, uniform half h) : sv
[test]
uniform 0 uint4 123 0xc0000000 456 0x7fd69345
todo
draw quad
draw quad
probe (320,240) rgba (123.0, 3221225472.0, 456.0, 2144768896.0)
...
...
@@ -31,7 +31,7 @@ float4 main(uniform float2x2 m, uniform float4 v) : sv_target
uniform 0 uint4 11 12 0 0
uniform 4 uint4 13 14 0 0
uniform 8 uint4 20 21 22 23
todo
draw quad
draw quad
probe (320,240) rgba (13.0, 21.0, 0.0, 0.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