-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove debugOptions from internal classes #3370
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -318,8 +318,8 @@ typedef void* ShHandle; | |
// Driver calls these to create and destroy compiler/linker | ||
// objects. | ||
// | ||
GLSLANG_EXPORT ShHandle ShConstructCompiler(const EShLanguage, int debugOptions); // one per shader | ||
GLSLANG_EXPORT ShHandle ShConstructLinker(const EShExecutable, int debugOptions); // one per shader pair | ||
GLSLANG_EXPORT ShHandle ShConstructCompiler(const EShLanguage, int /*debugOptions unused*/); // one per shader | ||
GLSLANG_EXPORT ShHandle ShConstructLinker(const EShExecutable, int /*debugOptions unused*/); // one per shader pair | ||
GLSLANG_EXPORT ShHandle ShConstructUniformMap(); // one per uniform namespace (currently entire program object) | ||
GLSLANG_EXPORT void ShDestruct(ShHandle); | ||
|
||
|
@@ -330,18 +330,13 @@ GLSLANG_EXPORT void ShDestruct(ShHandle); | |
// The info-log should be written by ShCompile into | ||
// ShHandle, so it can answer future queries. | ||
// | ||
GLSLANG_EXPORT int ShCompile( | ||
const ShHandle, | ||
const char* const shaderStrings[], | ||
const int numStrings, | ||
const int* lengths, | ||
const EShOptimizationLevel, | ||
const TBuiltInResource *resources, | ||
int debugOptions, | ||
int defaultVersion = 110, // use 100 for ES environment, overridden by #version in shader | ||
bool forwardCompatible = false, // give errors for use of deprecated features | ||
EShMessages messages = EShMsgDefault // warnings and errors | ||
); | ||
GLSLANG_EXPORT int ShCompile(const ShHandle, const char* const shaderStrings[], const int numStrings, | ||
const int* lengths, const EShOptimizationLevel, const TBuiltInResource* resources, | ||
int, // debugOptions unused | ||
int defaultVersion = 110, // use 100 for ES environment, overridden by #version in shader | ||
bool forwardCompatible = false, // give errors for use of deprecated features | ||
EShMessages messages = EShMsgDefault // warnings and errors | ||
); | ||
Comment on lines
+333
to
+339
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These whitespace changes are coming from clang-format. What is our policy on clang-format? It looks like we don't enforce clang-format changes, yet we have a .clang-format file checked into the repo. Should we either enforce clang-format (perhaps modifying the .clang-format file first), or just get rid of the .clang-format file if we don't plan on enforcing it? |
||
|
||
GLSLANG_EXPORT int ShLinkExt( | ||
const ShHandle, // linker object | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These casts were necessary due to the addition of
-Wshorten-64-to-32
.