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
b0364dcc
Commit
b0364dcc
authored
Feb 14, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV Capabilities: Image types.
SampledBuffer ImageBuffer Sampled1D Image1D SampledCubeArray ImageCubeArray SampledRect ImageRect InputAttachment ImageMSArray StorageImageMultisample
parent
3c52207e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
65 additions
and
0 deletions
+65
-0
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+42
-0
spv.130.frag.out
Test/baseResults/spv.130.frag.out
+3
-0
spv.140.frag.out
Test/baseResults/spv.140.frag.out
+2
-0
spv.400.frag.out
Test/baseResults/spv.400.frag.out
+1
-0
spv.image.frag.out
Test/baseResults/spv.image.frag.out
+5
-0
spv.newTexture.frag.out
Test/baseResults/spv.newTexture.frag.out
+2
-0
spv.queryL.frag.out
Test/baseResults/spv.queryL.frag.out
+4
-0
spv.sparseTexture.frag.out
Test/baseResults/spv.sparseTexture.frag.out
+2
-0
spv.sparseTextureClamp.frag.out
Test/baseResults/spv.sparseTextureClamp.frag.out
+2
-0
spv.texture.frag.out
Test/baseResults/spv.texture.frag.out
+1
-0
spv.texture.vert.out
Test/baseResults/spv.texture.vert.out
+1
-0
No files found.
SPIRV/SpvBuilder.cpp
View file @
b0364dcc
...
...
@@ -406,6 +406,48 @@ Id Builder::makeImageType(Id sampledType, Dim dim, bool depth, bool arrayed, boo
constantsTypesGlobals
.
push_back
(
std
::
unique_ptr
<
Instruction
>
(
type
));
module
.
mapInstruction
(
type
);
// deal with capabilities
switch
(
dim
)
{
case
DimBuffer
:
if
(
sampled
)
addCapability
(
CapabilitySampledBuffer
);
else
addCapability
(
CapabilityImageBuffer
);
break
;
case
Dim1D
:
if
(
sampled
)
addCapability
(
CapabilitySampled1D
);
else
addCapability
(
CapabilityImage1D
);
break
;
case
DimCube
:
if
(
arrayed
)
{
if
(
sampled
)
addCapability
(
CapabilitySampledCubeArray
);
else
addCapability
(
CapabilityImageCubeArray
);
}
break
;
case
DimRect
:
if
(
sampled
)
addCapability
(
CapabilitySampledRect
);
else
addCapability
(
CapabilityImageRect
);
break
;
case
DimSubpassData
:
addCapability
(
CapabilityInputAttachment
);
break
;
default
:
break
;
}
if
(
ms
)
{
if
(
arrayed
)
addCapability
(
CapabilityImageMSArray
);
if
(
!
sampled
)
addCapability
(
CapabilityStorageImageMultisample
);
}
return
type
->
getResultId
();
}
...
...
Test/baseResults/spv.130.frag.out
View file @
b0364dcc
...
...
@@ -11,6 +11,9 @@ Linked fragment stage:
Capability Shader
Capability ClipDistance
Capability SampledRect
Capability Sampled1D
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 17 68 79 99 173 184 185 186
...
...
Test/baseResults/spv.140.frag.out
View file @
b0364dcc
...
...
@@ -9,6 +9,8 @@ Linked fragment stage:
Capability Shader
Capability ClipDistance
Capability SampledRect
Capability SampledBuffer
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 16 28 33 43
...
...
Test/baseResults/spv.400.frag.out
View file @
b0364dcc
...
...
@@ -12,6 +12,7 @@ Linked fragment stage:
Capability Shader
Capability Float64
Capability ClipDistance
Capability SampledRect
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 13 1025 1031 1036 1048 1074 1095 1097
...
...
Test/baseResults/spv.image.frag.out
View file @
b0364dcc
...
...
@@ -10,6 +10,11 @@ Linked fragment stage:
// Id's are bound by 372
Capability Shader
Capability SampledRect
Capability Sampled1D
Capability SampledCubeArray
Capability SampledBuffer
Capability ImageMSArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 356
...
...
Test/baseResults/spv.newTexture.frag.out
View file @
b0364dcc
...
...
@@ -10,6 +10,8 @@ Linked fragment stage:
// Id's are bound by 278
Capability Shader
Capability SampledRect
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 17 26 29 55 81 84 91 247 277
...
...
Test/baseResults/spv.queryL.frag.out
View file @
b0364dcc
...
...
@@ -10,6 +10,10 @@ Linked fragment stage:
// Id's are bound by 237
Capability Shader
Capability SampledRect
Capability Sampled1D
Capability SampledCubeArray
Capability SampledBuffer
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
...
...
Test/baseResults/spv.sparseTexture.frag.out
View file @
b0364dcc
...
...
@@ -10,6 +10,8 @@ Linked fragment stage:
// Id's are bound by 399
Capability Shader
Capability SampledRect
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 384
...
...
Test/baseResults/spv.sparseTextureClamp.frag.out
View file @
b0364dcc
...
...
@@ -10,6 +10,8 @@ Linked fragment stage:
// Id's are bound by 360
Capability Shader
Capability SampledRect
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 345
...
...
Test/baseResults/spv.texture.frag.out
View file @
b0364dcc
...
...
@@ -8,6 +8,7 @@ Linked fragment stage:
// Id's are bound by 291
Capability Shader
Capability Sampled1D
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 47 276 290
...
...
Test/baseResults/spv.texture.vert.out
View file @
b0364dcc
...
...
@@ -8,6 +8,7 @@ Linked vertex stage:
// Id's are bound by 146
Capability Shader
Capability Sampled1D
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 39 140 144 145
...
...
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