Merge pull request #1308 from kayru/shader_generator_write_opt

Workaround for MSVC not optimizing away Write() in GeneratePixelShader
This commit is contained in:
skidau 2014-10-20 17:15:53 +11:00
commit f65bb10c93
2 changed files with 3 additions and 2 deletions

View File

@ -928,7 +928,7 @@ union AlphaTest
PASS = 2,
};
inline TEST_RESULT TestResult() const
__forceinline TEST_RESULT TestResult() const
{
switch (logic)
{

View File

@ -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.