Merge pull request #1308 from kayru/shader_generator_write_opt
Workaround for MSVC not optimizing away Write() in GeneratePixelShader
This commit is contained in:
commit
f65bb10c93
|
@ -928,7 +928,7 @@ union AlphaTest
|
|||
PASS = 2,
|
||||
};
|
||||
|
||||
inline TEST_RESULT TestResult() const
|
||||
__forceinline TEST_RESULT TestResult() const
|
||||
{
|
||||
switch (logic)
|
||||
{
|
||||
|
|
|
@ -30,7 +30,8 @@ public:
|
|||
* Can be used like printf.
|
||||
* @note In the ShaderCode implementation, this does indeed write the parameter string to an internal buffer. However, you're free to do whatever you like with the parameter.
|
||||
*/
|
||||
void Write(const char* fmt, ...) {}
|
||||
template<typename... Args>
|
||||
void Write(const char*, Args...) {}
|
||||
|
||||
/*
|
||||
* Returns a read pointer to the internal buffer.
|
||||
|
|
Loading…
Reference in New Issue