Merge pull request #1308 from kayru/shader_generator_write_opt Workaround for MSVC not optimizing away Write() in GeneratePixelShader