port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#pragma once
#ifdef _DEBUG
#define COMPILE_SHADER(entry, profile, buffer) \
{ \
ID3DXBuffer* errors = 0; \
D3DXCompileShader(shaderCode, shaderSize, 0, 0, entry, profile, D3DXSHADER_DEBUG, buffer, &errors, 0); \
if (errors != 0) \
{ \
OutputDebugStringA((char*)errors->GetBufferPointer()); \
errors->Release(); \
DebugBreak(); \
} \
}
#else
#define COMPILE_SHADER(entry, profile, buffer) D3DXCompileShader(shaderCode, shaderSize, 0, 0, entry, profile, 0, buffer, 0, 0);
#endif