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
54e3bb8a
Commit
54e3bb8a
authored
Jun 03, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #327 from steve-lunarg/empty-statement-fix
HLSL: Fix for empty statement segfault
parents
9f1f8180
ef764a24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
hlsl.intrinsics.vert
Test/hlsl.intrinsics.vert
+3
-3
hlslGrammar.cpp
hlsl/hlslGrammar.cpp
+2
-0
No files found.
Test/hlsl.intrinsics.vert
View file @
54e3bb8a
...
@@ -298,7 +298,7 @@ float4 VertexShaderFunction(float4 inF0, float4 inF1, float4 inF2)
...
@@ -298,7 +298,7 @@ float4 VertexShaderFunction(float4 inF0, float4 inF1, float4 inF2)
float2x2
VertexShaderFunction
(
float2x2
inF0
,
float2x2
inF1
,
float2x2
inF2
)
float2x2
VertexShaderFunction
(
float2x2
inF0
,
float2x2
inF1
,
float2x2
inF2
)
{
{
// TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
// TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
MATFNS
()
MATFNS
()
;
// TODO: ... add when float1 prototypes are generated
// TODO: ... add when float1 prototypes are generated
return
float2x2
(
2
,
2
,
2
,
2
);
return
float2x2
(
2
,
2
,
2
,
2
);
...
@@ -307,7 +307,7 @@ float2x2 VertexShaderFunction(float2x2 inF0, float2x2 inF1, float2x2 inF2)
...
@@ -307,7 +307,7 @@ float2x2 VertexShaderFunction(float2x2 inF0, float2x2 inF1, float2x2 inF2)
float3x3
VertexShaderFunction
(
float3x3
inF0
,
float3x3
inF1
,
float3x3
inF2
)
float3x3
VertexShaderFunction
(
float3x3
inF0
,
float3x3
inF1
,
float3x3
inF2
)
{
{
// TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
// TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
MATFNS
()
MATFNS
()
;
// TODO: ... add when float1 prototypes are generated
// TODO: ... add when float1 prototypes are generated
return
float3x3
(
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
);
return
float3x3
(
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
);
...
@@ -316,7 +316,7 @@ float3x3 VertexShaderFunction(float3x3 inF0, float3x3 inF1, float3x3 inF2)
...
@@ -316,7 +316,7 @@ float3x3 VertexShaderFunction(float3x3 inF0, float3x3 inF1, float3x3 inF2)
float4x4
VertexShaderFunction
(
float4x4
inF0
,
float4x4
inF1
,
float4x4
inF2
)
float4x4
VertexShaderFunction
(
float4x4
inF0
,
float4x4
inF1
,
float4x4
inF2
)
{
{
// TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
// TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
MATFNS
()
MATFNS
()
;
// TODO: ... add when float1 prototypes are generated
// TODO: ... add when float1 prototypes are generated
return
float4x4
(
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
);
return
float4x4
(
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
);
...
...
hlsl/hlslGrammar.cpp
View file @
54e3bb8a
...
@@ -492,6 +492,8 @@ bool HlslGrammar::acceptFunctionDefinition(TFunction& function, TIntermNode*& no
...
@@ -492,6 +492,8 @@ bool HlslGrammar::acceptFunctionDefinition(TFunction& function, TIntermNode*& no
//
//
bool
HlslGrammar
::
acceptExpression
(
TIntermTyped
*&
node
)
bool
HlslGrammar
::
acceptExpression
(
TIntermTyped
*&
node
)
{
{
node
=
nullptr
;
// assignment_expression
// assignment_expression
if
(
!
acceptAssignmentExpression
(
node
))
if
(
!
acceptAssignmentExpression
(
node
))
return
false
;
return
false
;
...
...
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