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

Method clearUAV

Source/Falcor/Core/API/ComputeContext.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ComputeContext::clearUAV(const UnorderedAccessView* pUav, const float4& value)
64{
65 resourceBarrier(pUav->getResource(), Resource::State::UnorderedAccess);
66
67 auto resourceEncoder = mpLowLevelData->getResourceCommandEncoder();
68 gfx::ClearValue clearValue = {};
69 memcpy(clearValue.color.floatValues, &value, sizeof(float) * 4);
70 resourceEncoder->clearResourceView(pUav->getGfxResourceView(), &clearValue, gfx::ClearResourceViewFlags::FloatClearValues);
71 mCommandsPending = true;
72}
73
74void ComputeContext::clearUAV(const UnorderedAccessView* pUav, const uint4& value)
75{

Callers 15

executeMethod · 0.80
executeViewerPassMethod · 0.80
executeMethod · 0.80
beginFrameMethod · 0.80
executeMethod · 0.80
prepareAccumulationMethod · 0.80
beginFrameMethod · 0.80
endFrameMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
verifyDataMethod · 0.80

Calls 2

getResourceMethod · 0.45

Tested by 7

executeMethod · 0.64
verifyDataMethod · 0.64
GPU_TESTFunction · 0.64
GPU_TESTFunction · 0.64
tabulateHistogramFunction · 0.64
tabulateHistogramFunction · 0.64