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
22d63dae
Commit
22d63dae
authored
Jun 07, 2013
by
Jamie Madill
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an improper usage of getCols, which should be getNominalSize, in unsigned int vector code.
TRAC #23263 Signed-off-by: Shannon Woods Author: Jamie Madill
parent
d3ff2169
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
OutputHLSL.cpp
src/compiler/OutputHLSL.cpp
+2
-2
VariableInfo.cpp
src/compiler/VariableInfo.cpp
+1
-1
No files found.
src/compiler/OutputHLSL.cpp
View file @
22d63dae
...
...
@@ -2924,7 +2924,7 @@ TString OutputHLSL::typeString(const TType &type)
case
4
:
return
"int4"
;
}
case
EbtUInt
:
switch
(
type
.
get
Cols
())
switch
(
type
.
get
NominalSize
())
{
case
1
:
return
"uint"
;
case
2
:
return
"uint2"
;
...
...
@@ -3501,7 +3501,7 @@ GLenum OutputHLSL::glVariableType(const TType &type)
}
else
if
(
type
.
isVector
())
{
switch
(
type
.
get
Cols
())
switch
(
type
.
get
NominalSize
())
{
case
2
:
return
GL_UNSIGNED_INT_VEC2
;
case
3
:
return
GL_UNSIGNED_INT_VEC3
;
...
...
src/compiler/VariableInfo.cpp
View file @
22d63dae
...
...
@@ -73,7 +73,7 @@ static ShDataType getVariableDataType(const TType& type)
if
(
type
.
isMatrix
())
{
UNREACHABLE
();
}
else
if
(
type
.
isVector
())
{
switch
(
type
.
get
Cols
())
{
switch
(
type
.
get
NominalSize
())
{
case
2
:
return
SH_UNSIGNED_INT_VEC2
;
case
3
:
return
SH_UNSIGNED_INT_VEC3
;
case
4
:
return
SH_UNSIGNED_INT_VEC4
;
...
...
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