Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
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
angle
Commits
9060a4e0
Commit
9060a4e0
authored
Aug 12, 2013
by
Jamie Madill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some missing UBO qualifier link validation errors.
TRAC #23747 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods
parent
19571818
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
OutputHLSL.cpp
src/compiler/OutputHLSL.cpp
+6
-0
Uniform.cpp
src/compiler/Uniform.cpp
+2
-1
Uniform.h
src/compiler/Uniform.h
+1
-0
ProgramBinary.cpp
src/libGLESv2/ProgramBinary.cpp
+6
-0
No files found.
src/compiler/OutputHLSL.cpp
View file @
9060a4e0
...
@@ -566,6 +566,12 @@ void OutputHLSL::header()
...
@@ -566,6 +566,12 @@ void OutputHLSL::header()
BlockLayoutType
blockLayoutType
=
convertBlockLayoutType
(
interfaceBlock
.
blockStorage
());
BlockLayoutType
blockLayoutType
=
convertBlockLayoutType
(
interfaceBlock
.
blockStorage
());
setBlockLayout
(
&
activeBlock
,
blockLayoutType
);
setBlockLayout
(
&
activeBlock
,
blockLayoutType
);
if
(
interfaceBlock
.
matrixPacking
()
==
EmpRowMajor
)
{
activeBlock
.
isRowMajorLayout
=
true
;
}
mActiveInterfaceBlocks
.
push_back
(
activeBlock
);
mActiveInterfaceBlocks
.
push_back
(
activeBlock
);
if
(
interfaceBlock
.
hasInstanceName
())
if
(
interfaceBlock
.
hasInstanceName
())
...
...
src/compiler/Uniform.cpp
View file @
9060a4e0
...
@@ -50,7 +50,8 @@ InterfaceBlock::InterfaceBlock(const char *name, unsigned int arraySize, unsigne
...
@@ -50,7 +50,8 @@ InterfaceBlock::InterfaceBlock(const char *name, unsigned int arraySize, unsigne
:
name
(
name
),
:
name
(
name
),
arraySize
(
arraySize
),
arraySize
(
arraySize
),
layout
(
BLOCKLAYOUT_SHARED
),
layout
(
BLOCKLAYOUT_SHARED
),
registerIndex
(
registerIndex
)
registerIndex
(
registerIndex
),
isRowMajorLayout
(
false
)
{
{
}
}
...
...
src/compiler/Uniform.h
View file @
9060a4e0
...
@@ -79,6 +79,7 @@ struct InterfaceBlock
...
@@ -79,6 +79,7 @@ struct InterfaceBlock
size_t
dataSize
;
size_t
dataSize
;
std
::
vector
<
BlockMemberInfo
>
blockInfo
;
std
::
vector
<
BlockMemberInfo
>
blockInfo
;
BlockLayoutType
layout
;
BlockLayoutType
layout
;
bool
isRowMajorLayout
;
unsigned
int
registerIndex
;
unsigned
int
registerIndex
;
};
};
...
...
src/libGLESv2/ProgramBinary.cpp
View file @
9060a4e0
...
@@ -2459,6 +2459,12 @@ bool ProgramBinary::areMatchingInterfaceBlocks(InfoLog &infoLog, const sh::Inter
...
@@ -2459,6 +2459,12 @@ bool ProgramBinary::areMatchingInterfaceBlocks(InfoLog &infoLog, const sh::Inter
return
false
;
return
false
;
}
}
if
(
vertexInterfaceBlock
.
layout
!=
fragmentInterfaceBlock
.
layout
||
vertexInterfaceBlock
.
isRowMajorLayout
!=
fragmentInterfaceBlock
.
isRowMajorLayout
)
{
infoLog
.
append
(
"Layout qualifiers differ for interface block '%s' between vertex and fragment shaders"
,
blockName
);
return
false
;
}
const
unsigned
int
numBlockMembers
=
vertexInterfaceBlock
.
activeUniforms
.
size
();
const
unsigned
int
numBlockMembers
=
vertexInterfaceBlock
.
activeUniforms
.
size
();
for
(
unsigned
int
blockMemberIndex
=
0
;
blockMemberIndex
<
numBlockMembers
;
blockMemberIndex
++
)
for
(
unsigned
int
blockMemberIndex
=
0
;
blockMemberIndex
<
numBlockMembers
;
blockMemberIndex
++
)
{
{
...
...
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