| 57 | } |
| 58 | |
| 59 | void 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 | |
| 69 | void DX11PixelShader::DisableCBuffer(ID3D11DeviceContext* context, |
| 70 | uint32_t bindPoint) |