Class ResourceOwnerVulkan
Base class for objects in Vulkan backend that can own a resource.
Inheritance
ResourceOwnerVulkan
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/Vulkan/ResourceOwnerVulkan.h
Syntax
public class ResourceOwnerVulkan
Constructors
~ResourceOwnerVulkan()
Declaration
public virtual ~ResourceOwnerVulkan()
Fields
ArraySlices
The array size (for textures).
Declaration
public int32 ArraySlices
Field Value
|
int32
|
State
The resource state tracking helper. Used for resource barriers.
Declaration
public ResourceStateVulkan State
Field Value
|
ResourceStateVulkan
|
Methods
AsGPUResource()
Gets resource owner object as a GPUResource type or returns null if cannot perform cast.
Declaration
public virtual GPUResource* AsGPUResource() const = 0
Returns
|
GPUResource
GPU Resource or null if cannot cast. |
initResource(VkImageLayout initialState, int32 mipLevels=1, int32 arraySize=1, bool usePerSubresourceTracking=false)
Declaration
protected void initResource(VkImageLayout initialState, int32 mipLevels=1, int32 arraySize=1, bool usePerSubresourceTracking=false)
Parameters
|
VkImageLayout
initialState
|
|
int32
mipLevels
|
|
int32
arraySize
|
|
bool
usePerSubresourceTracking
|