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
ac516024
Commit
ac516024
authored
Nov 01, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1065: don't validate Vulkan binding numbers.
To handle sparse assignments, don't check maxCombinedTextureImageUnits.
parent
715c353a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
vulkan.vert
Test/vulkan.vert
+3
-0
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+1
-1
No files found.
Test/vulkan.vert
View file @
ac516024
...
@@ -58,3 +58,6 @@ out ban1 { // ERROR, only outer dimension
...
@@ -58,3 +58,6 @@ out ban1 { // ERROR, only outer dimension
out
ban2
{
out
ban2
{
float
f
;
float
f
;
}
bai2
[
arraySize
][
2
];
}
bai2
[
arraySize
][
2
];
layout
(
binding
=
3000
)
uniform
sampler2D
s3000
;
layout
(
binding
=
3001
)
uniform
b3001
{
int
a
;
};
glslang/MachineIndependent/ParseHelper.cpp
View file @
ac516024
...
@@ -4614,7 +4614,7 @@ void TParseContext::layoutTypeCheck(const TSourceLoc& loc, const TType& type)
...
@@ -4614,7 +4614,7 @@ void TParseContext::layoutTypeCheck(const TSourceLoc& loc, const TType& type)
}
else
}
else
lastBinding
+=
type
.
getCumulativeArraySize
();
lastBinding
+=
type
.
getCumulativeArraySize
();
}
}
if
(
lastBinding
>=
resources
.
maxCombinedTextureImageUnits
)
if
(
spvVersion
.
vulkan
==
0
&&
lastBinding
>=
resources
.
maxCombinedTextureImageUnits
)
error
(
loc
,
"sampler binding not less than gl_MaxCombinedTextureImageUnits"
,
"binding"
,
type
.
isArray
()
?
"(using array)"
:
""
);
error
(
loc
,
"sampler binding not less than gl_MaxCombinedTextureImageUnits"
,
"binding"
,
type
.
isArray
()
?
"(using array)"
:
""
);
}
}
if
(
type
.
getBasicType
()
==
EbtAtomicUint
)
{
if
(
type
.
getBasicType
()
==
EbtAtomicUint
)
{
...
...
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