Language:
Discover
By Skill Level
By Category

FVulkanBufferView

Choose your OS:

Inheritance Hierarchy

FRHIResource

FDeviceChild

FVulkanBufferView

Syntax

struct FVulkanBufferView :
    public FRHIResource ,
    public VulkanRHI::FDeviceChild

Remarks

Class FVulkanRenderQuery : public FRHIRenderQuery { public: FVulkanRenderQuery(FVulkanDevice* Device, ERenderQueryType InQueryType) ; virtual ~FVulkanRenderQuery();

inline bool HasQueryBeenEmitted() const { return State == EState::InEnd; }

uint32 LastPoolReset = 0;

private: int32 QueryIndex = INT32_MAX;

const ERenderQueryType QueryType;

FVulkanCmdBuffer* BeginCmdBuffer = nullptr;

friend class FVulkanDynamicRHI ; friend class FVulkanCommandListContext ; friend class FVulkanGPUTiming ;

FVulkanQueryPool* Pool = nullptr; enum class EState { Reset, InBegin, InEnd, HasResults, }; EState State = EState::Reset; uint64 Result = 0;

void Reset(FVulkanQueryPool* InPool, int32 InQueryIndex) { QueryIndex = InQueryIndex; Pool = InPool; State = EState::Reset; } void Begin(FVulkanCmdBuffer* InCmdBuffer); void End(FVulkanCmdBuffer* InCmdBuffer) ;

bool GetResult(FVulkanDevice* Device, uint64& OutResult, bool bWait); }; class FVulkanRenderQuery : public FRHIRenderQuery { public: FVulkanRenderQuery(FVulkanDevice* Device, ERenderQueryType InQueryType) ; virtual ~FVulkanRenderQuery();

inline bool HasQueryBeenEmitted() const { return State == EState::InEnd; }

uint32 LastPoolReset = 0;

private: };

Variables

Name Description

Public variable

VkFlags

 

Flags

Public variable

uint32

 

Offset

Public variable

uint32

 

Size

Public variable

VkBufferView

 

View

Constructors

Name Description

Public function

FVulkanBufferView

(
    FVulkanDevice* InDevice
)

Destructors

Name Description

Public function Virtual

~FVulkanBufferView()

Functions

Name Description

Public function

void

 

Create

(
    FVulkanBuffer & Buffer,
    EPixelFormat Format,
    uint32 InOffset,
    uint32 InSize
)

Public function

void

 

Create

(
    FVulkanResourceMultiBuffer * Bu...,
    EPixelFormat Format,
    uint32 InOffset,
    uint32 InSize
)

Public function

void

 

Create

(
    VkFormat Format,
    FVulkanResourceMultiBuffer * Bu...,
    uint32 InOffset,
    uint32 InSize
)

Public function

void

 

Destroy()

References

Module

VulkanRHI

Header

Runtime/VulkanRHI/Public/VulkanResources.h