Class GPUTextureViewVulkan
The texture view for Vulkan backend.
Inherited Members
GPUTextureViewVulkan
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/Vulkan/GPUTextureVulkan.h
Syntax
public class GPUTextureViewVulkan : public GPUTextureView, public DescriptorOwnerResourceVulkan
Constructors
~GPUTextureViewVulkan()
Declaration
public ~GPUTextureViewVulkan()
GPUTextureViewVulkan()
Declaration
public GPUTextureViewVulkan()
Fields
Device
Extent
Declaration
public VkExtent3D Extent
Field Value
VkExtent3D
|
Image
Declaration
public VkImage Image = VK_NULL_HANDLE
Field Value
VkImage
|
Info
Declaration
public VkImageViewCreateInfo Info
Field Value
VkImageViewCreateInfo
|
Layers
Declaration
public uint32 Layers
Field Value
uint32
|
LayoutRTV
Declaration
public VkImageLayout LayoutRTV
Field Value
VkImageLayout
|
LayoutSRV
Declaration
public VkImageLayout LayoutSRV
Field Value
VkImageLayout
|
Owner
SubresourceIndex
Declaration
public int32 SubresourceIndex
Field Value
int32
|
View
Declaration
public VkImageView View = VK_NULL_HANDLE
Field Value
VkImageView
|
ViewFramebuffer
Declaration
public VkImageView ViewFramebuffer = VK_NULL_HANDLE
Field Value
VkImageView
|
ViewSRV
Declaration
public VkImageView ViewSRV = VK_NULL_HANDLE
Field Value
VkImageView
|
Methods
DescriptorAsImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout)
Gets the image descriptor.
Declaration
public virtual void DescriptorAsImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout) override
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkImageView
imageView
The image view. |
VkImageLayout
layout
The image layout. |
Overrides
DescriptorAsStorageImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout)
Gets the storage image descriptor (VK_DESCRIPTOR_TYPE_STORAGE_IMAGE).
Declaration
public virtual void DescriptorAsStorageImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout) override
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkImageView
imageView
The image view. |
VkImageLayout
layout
The image layout. |
Overrides
GetFramebufferView()
Declaration
public VkImageView GetFramebufferView()
Returns
VkImageView
|
GetNativePtr()
Gets the native pointer to the underlying view. It's a platform-specific handle.
Declaration
public virtual void* GetNativePtr() const override
Returns
void
|
Overrides
HasSRV()
Declaration
public virtual bool HasSRV() const override
Returns
bool
|
Overrides
HasUAV()
Declaration
public virtual bool HasUAV() const override
Returns
bool
|
Overrides
Init(GPUDeviceVulkan* device, ResourceOwnerVulkan* owner, VkImage image, int32 totalMipLevels, PixelFormat format, MSAALevel msaa, VkExtent3D extent, VkImageViewType viewType, int32 mipLevels=1, int32 firstMipIndex = 0, int32 arraySize=1, int32 firstArraySlice = 0, bool readOnlyDepth=false)
Declaration
public void Init(GPUDeviceVulkan* device, ResourceOwnerVulkan* owner, VkImage image, int32 totalMipLevels, PixelFormat format, MSAALevel msaa, VkExtent3D extent, VkImageViewType viewType, int32 mipLevels=1, int32 firstMipIndex = 0, int32 arraySize=1, int32 firstArraySlice = 0, bool readOnlyDepth=false)
Parameters
GPUDeviceVulkan
device
|
ResourceOwnerVulkan
owner
|
VkImage
image
|
int32
totalMipLevels
|
PixelFormat
format
|
MSAALevel
msaa
|
VkExtent3D
extent
|
VkImageViewType
viewType
|
int32
mipLevels
|
int32
firstMipIndex
|
int32
arraySize
|
int32
firstArraySlice
|
bool
readOnlyDepth
|
Release()
Declaration
public void Release()