MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BindUA

Method BindUA

Source/Engine/GraphicsDevice/Vulkan/GPUContextVulkan.cpp:1076–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076void GPUContextVulkan::BindUA(int32 slot, GPUResourceView* view)
1077{
1078#if !BUILD_RELEASE
1079 ASSERT(slot >= 0 && slot < GPU_MAX_UA_BINDED);
1080 if (view && ((DescriptorOwnerResourceVulkan*)view->GetNativePtr())->HasUAV() == false)
1081 LogInvalidResourceUsage(slot, view, InvalidBindPoint::UAV);
1082#endif
1083 const auto handle = view ? (DescriptorOwnerResourceVulkan*)view->GetNativePtr() : nullptr;
1084 if (_uaHandles[slot] != handle)
1085 {
1086 _uaHandles[slot] = handle;
1087 if (view)
1088 *view->LastRenderTime = _lastRenderTime;
1089 }
1090}
1091
1092void GPUContextVulkan::BindVB(const Span<GPUBuffer*>& vertexBuffers, const uint32* vertexBuffersOffsets, GPUVertexLayout* vertexLayout)
1093{

Callers 12

RenderMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
SortMethod · 0.45
RenderInnerMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
onJobRenderMethod · 0.45
DrawEmittersGPUFunction · 0.45
SimMethod · 0.45
runMethod · 0.45

Calls 2

HasUAVMethod · 0.45
GetNativePtrMethod · 0.45

Tested by

no test coverage detected