MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Allocate

Method Allocate

SampleFramework12/v1.00/Graphics/GraphicsTypes.cpp:65–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65DescriptorHandle DescriptorHeap::Allocate()
66{
67 Assert_(Heap != nullptr);
68 Assert_(Allocated < NumDescriptors);
69 uint64 idx = DeadList[Allocated];
70 ++Allocated;
71
72 DescriptorHandle handle;
73 handle.CPUHandle = CPUStart;
74 handle.CPUHandle.ptr += idx * DescriptorSize;
75 if(ShaderVisible)
76 {
77 handle.GPUHandle = GPUStart;
78 handle.GPUHandle.ptr += idx * DescriptorSize;
79 }
80
81 #if UseAsserts_
82 handle.ParentHeap = reinterpret_cast<const void*>(this);
83 #endif
84
85 return handle;
86}
87
88void DescriptorHeap::Free(DescriptorHandle& handle)
89{

Callers 9

RenderDeferredMethod · 0.80
RenderMainPassMethod · 0.80
LoadTextureFunction · 0.80
Create2DTextureFunction · 0.80
Create3DTextureFunction · 0.80
AfterResetMethod · 0.80
LoadMaterialResourcesFunction · 0.80
MakeDescriptorTableFunction · 0.80
InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected