Skip to content

Commit 19f0eb0

Browse files
committed
d3d11: compile with IEEE strictness flag
1 parent 141821c commit 19f0eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/smolcompute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ SmolKernel* SmolKernelCreate(const void* shaderCode, size_t shaderCodeSize, cons
204204
{
205205
ID3DBlob* bytecode = nullptr;
206206
ID3DBlob* errors = nullptr;
207-
HRESULT hr = D3DCompile(shaderCode, shaderCodeSize, "", NULL, NULL, entryPoint, "cs_5_0", 0, 0, &bytecode, &errors);
207+
HRESULT hr = D3DCompile(shaderCode, shaderCodeSize, "", NULL, NULL, entryPoint, "cs_5_0", D3DCOMPILE_IEEE_STRICTNESS, 0, &bytecode, &errors);
208208
if (FAILED(hr))
209209
{
210210
const char* errMsg = (const char*)errors->GetBufferPointer();

0 commit comments

Comments
 (0)