Computes a compute shader dispatch size given a thread group size, and number of elements to process
| 94 | |
| 95 | // Computes a compute shader dispatch size given a thread group size, and number of elements to process |
| 96 | uint32 DispatchSize(uint32 tgSize, uint32 numElements) |
| 97 | { |
| 98 | uint32 dispatchSize = numElements / tgSize; |
| 99 | dispatchSize += numElements % tgSize > 0 ? 1 : 0; |
| 100 | return dispatchSize; |
| 101 | } |
| 102 | |
| 103 | void SetCSInputs(ID3D11DeviceContext* context, ID3D11ShaderResourceView* srv0, ID3D11ShaderResourceView* srv1, |
| 104 | ID3D11ShaderResourceView* srv2, ID3D11ShaderResourceView* srv3) |
no outgoing calls
no test coverage detected