MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / setBlob

Method setBlob

Source/Falcor/Core/API/ParameterBlock.cpp:349–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void 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
362void ParameterBlock::setBlob(const void* pSrc, size_t offset, size_t size)
363{

Callers

nothing calls this directly

Calls 3

isConstantBufferTypeFunction · 0.85
getGFXShaderOffsetFunction · 0.85
getTypeMethod · 0.45

Tested by

no test coverage detected