MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / EnableCBuffer

Method EnableCBuffer

GTE/Graphics/DX11/DX11PixelShader.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void DX11PixelShader::EnableCBuffer(ID3D11DeviceContext* context,
60 uint32_t bindPoint, ID3D11Buffer* buffer)
61{
62 if (mDXObject)
63 {
64 ID3D11Buffer* buffers[1] = { buffer };
65 context->PSSetConstantBuffers(bindPoint, 1, buffers);
66 }
67}
68
69void DX11PixelShader::DisableCBuffer(ID3D11DeviceContext* context,
70 uint32_t bindPoint)

Callers 1

EnableCBuffersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected