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

Method Transition

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

Source from the content-addressed store, hash-verified

1927}
1928
1929void GPUContextVulkan::Transition(GPUResource* resource, GPUResourceAccess access)
1930{
1931 if (auto buffer = dynamic_cast<GPUBufferVulkan*>(resource))
1932 {
1933 AddBufferBarrier(buffer, RenderToolsVulkan::GetAccess(access));
1934 }
1935 else if (auto texture = dynamic_cast<GPUTextureVulkan*>(resource))
1936 {
1937 AddImageBarrier(texture, RenderToolsVulkan::GetImageLayout(access));
1938 }
1939}
1940
1941void GPUContextVulkan::MemoryBarrier()
1942{

Callers 4

DrawEmittersGPUFunction · 0.45
UpdateGPUFunction · 0.45
TransitionFunction · 0.45
PostDrawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected