Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
8eb0bdce
Commit
8eb0bdce
authored
Sep 09, 2020
by
Greg Fischer
Committed by
Bas Nieuwenhuizen
Sep 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add texture sample to nonuniform test
This verifies that the nonuniform decoration does NOT propagate to the OpSampledImage.
parent
889ac204
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
spv.nonuniform.frag.out
Test/baseResults/spv.nonuniform.frag.out
+0
-0
spv.nonuniform.frag
Test/spv.nonuniform.frag
+4
-0
No files found.
Test/baseResults/spv.nonuniform.frag.out
View file @
8eb0bdce
This diff is collapsed.
Click to expand it.
Test/spv.nonuniform.frag
View file @
8eb0bdce
...
...
@@ -5,6 +5,7 @@
layout
(
location
=
0
)
nonuniformEXT
in
vec4
nu_inv4
;
nonuniformEXT
float
nu_gf
;
layout
(
location
=
1
)
in
nonuniformEXT
flat
int
nu_ii
;
layout
(
location
=
2
)
in
vec2
inTexcoord
;
layout
(
binding
=
0
,
input_attachment_index
=
0
)
uniform
subpassInput
inputAttachmentDyn
[];
layout
(
binding
=
1
)
uniform
samplerBuffer
uniformTexelBufferDyn
[];
...
...
@@ -16,6 +17,8 @@ layout(binding=6, r32f) uniform image2D storag
layout
(
binding
=
7
,
input_attachment_index
=
1
)
uniform
subpassInput
inputAttachment
[];
layout
(
binding
=
8
)
uniform
samplerBuffer
uniformTexelBuffer
[];
layout
(
binding
=
9
,
r32f
)
uniform
imageBuffer
storageTexelBuffer
[];
layout
(
binding
=
10
)
uniform
texture2D
uniformTexArr
[
8
];
layout
(
binding
=
11
)
uniform
sampler
uniformSampler
;
nonuniformEXT
int
foo
(
nonuniformEXT
int
nupi
,
nonuniformEXT
out
int
f
)
{
...
...
@@ -42,6 +45,7 @@ void main()
b
+=
subpassLoad
(
inputAttachment
[
nu_ii
]).
x
;
b
+=
texelFetch
(
uniformTexelBuffer
[
nu_ii
],
1
).
x
;
b
+=
imageLoad
(
storageTexelBuffer
[
nu_ii
],
1
).
x
;
b
+=
texture
(
sampler2D
(
uniformTexArr
[
nu_ii
],
uniformSampler
),
inTexcoord
.
xy
).
x
;
nonuniformEXT
ivec4
v
;
nonuniformEXT
mat4
m
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment