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
82ead04c
Commit
82ead04c
authored
Jan 17, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Non-functional. Fix #1223: expand comments.
parent
ade21c71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
ShaderLang.h
glslang/Public/ShaderLang.h
+13
-6
No files found.
glslang/Public/ShaderLang.h
View file @
82ead04c
...
@@ -334,11 +334,15 @@ enum TResourceType {
...
@@ -334,11 +334,15 @@ enum TResourceType {
EResCount
EResCount
};
};
// Make one TShader per shader that you will link into a program. Then provide
// Make one TShader per shader that you will link into a program. Then
// the shader through setStrings() or setStringsWithLengths(), then call parse(),
// - provide the shader through setStrings() or setStringsWithLengths()
// then query the info logs.
// - optionally call setEnv*(), see below for more detail
// Optionally use setPreamble() to set a special shader string that will be
// - optionally use setPreamble() to set a special shader string that will be
// processed before all others but won't affect the validity of #version.
// processed before all others but won't affect the validity of #version
// - call parse(): source language and target environment must be selected
// either by correct setting of EShMessages sent to parse(), or by
// explicitly calling setEnv*()
// - query the info logs
//
//
// N.B.: Does not yet support having the same TShader instance being linked into
// N.B.: Does not yet support having the same TShader instance being linked into
// multiple programs.
// multiple programs.
...
@@ -377,7 +381,10 @@ public:
...
@@ -377,7 +381,10 @@ public:
void
setNoStorageFormat
(
bool
useUnknownFormat
);
void
setNoStorageFormat
(
bool
useUnknownFormat
);
void
setTextureSamplerTransformMode
(
EShTextureSamplerTransformMode
mode
);
void
setTextureSamplerTransformMode
(
EShTextureSamplerTransformMode
mode
);
// For setting up the environment (initialized in the constructor):
// For setting up the environment (cleared to nothingness in the constructor).
// These must be called so that parsing is done for the right source language and
// target environment, either indirectly through TranslateEnvironment() based on
// EShMessages et. al., or directly by the user.
void
setEnvInput
(
EShSource
lang
,
EShLanguage
envStage
,
EShClient
client
,
int
version
)
void
setEnvInput
(
EShSource
lang
,
EShLanguage
envStage
,
EShClient
client
,
int
version
)
{
{
environment
.
input
.
languageFamily
=
lang
;
environment
.
input
.
languageFamily
=
lang
;
...
...
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