ID3D12ResourceAllocator

Generic interface for every type D3D12 specific allocator.

Choose your operating system:

Windows

macOS

Linux

References

Module

D3D12RHI

Header

/Engine/Source/Runtime/D3D12RHI/Public/D3D12Resources.h

Include

#include "D3D12Resources.h"

Syntax

struct ID3D12ResourceAllocator

Remarks

Generic interface for every type D3D12 specific allocator.

Functions

Name Description

Public function

void

 

AllocateResource

(
    uint32 GPUIndex,
    D3D12_HEAP_TYPE InHeapType,
    const FD3D12ResourceDesc& InDesc,
    uint64 InSize,
    uint32 InAllocationAlignment,
    ED3D12ResourceStateMode InResourceS...,
    D3D12_RESOURCE_STATES InCreateState,
    const D3D12_CLEAR_VALUE* InCle...,
    const TCHAR* InName,
    FD3D12ResourceLocation& ResourceLo...
)

Actual pure virtual resource allocation function.

Public function

void

 

AllocateTexture

(
    uint32 GPUIndex,
    D3D12_HEAP_TYPE InHeapType,
    const FD3D12ResourceDesc& InDesc,
    EPixelFormat InUEFormat,
    ED3D12ResourceStateMode InResourceS...,
    D3D12_RESOURCE_STATES InCreateState,
    const D3D12_CLEAR_VALUE* InCle...,
    const TCHAR* InName,
    FD3D12ResourceLocation& ResourceLo...
)

Helper function for textures to compute the correct size and alignment.