Computes a compute shader dispatch size given a thread group size, and number of elements to process
| 109 | |
| 110 | // Computes a compute shader dispatch size given a thread group size, and number of elements to process |
| 111 | uint32 DispatchSize(uint32 tgSize, uint32 numElements) |
| 112 | { |
| 113 | uint32 dispatchSize = numElements / tgSize; |
| 114 | dispatchSize += numElements % tgSize > 0 ? 1 : 0; |
| 115 | return dispatchSize; |
| 116 | } |
| 117 | |
| 118 | void SetCSInputs(ID3D11DeviceContext* context, ID3D11ShaderResourceView* srv0, ID3D11ShaderResourceView* srv1, |
| 119 | ID3D11ShaderResourceView* srv2, ID3D11ShaderResourceView* srv3) |
no outgoing calls
no test coverage detected