| 347 | } |
| 348 | |
| 349 | void ParameterBlock::setBlob(const void* pSrc, const BindLocation& bindLocation, size_t size) |
| 350 | { |
| 351 | if (!isConstantBufferType(bindLocation.getType())) |
| 352 | { |
| 353 | gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation); |
| 354 | FALCOR_GFX_CALL(mpShaderObject->setData(gfxOffset, pSrc, size)); |
| 355 | } |
| 356 | else |
| 357 | { |
| 358 | FALCOR_THROW("Error trying to set a blob to a non constant buffer variable."); |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | void ParameterBlock::setBlob(const void* pSrc, size_t offset, size_t size) |
| 363 | { |
nothing calls this directly
no test coverage detected