Skip to content

KDGpu::VulkanAccelerationStructure

Module: Vulkan

VulkanAccelerationStructure.

#include <vulkan_acceleration_structure.h>

Inherits from KDGpu::ApiAccelerationStructure

Public Functions

Name
VulkanAccelerationStructure(Handle< Device_t > _deviceHandle, VulkanResourceManager * _vulkanResourceManager, VkAccelerationStructureKHR _accelerationStructure, Handle< Buffer_t > _backingBuffer, AccelerationStructureType _type, VkAccelerationStructureBuildSizesInfoKHR _buildSizes, VkBuildAccelerationStructureFlagsKHR _buildFlags)
Handle< Buffer_t > createAccelerationBuffer(Handle< Device_t > deviceHandle, VulkanResourceManager * _vulkanResourceManager, VkDeviceSize size)

Public Attributes

Name
Handle< Device_t > deviceHandle
VulkanResourceManager * vulkanResourceManager
VkAccelerationStructureKHR accelerationStructure
Handle< Buffer_t > backingBuffer
AccelerationStructureType type
VkAccelerationStructureBuildSizesInfoKHR buildSizes
VkBuildAccelerationStructureFlagsKHR buildFlags

Public Functions Documentation

function VulkanAccelerationStructure

1
2
3
4
5
6
7
8
9
explicit VulkanAccelerationStructure(
    Handle< Device_t > _deviceHandle,
    VulkanResourceManager * _vulkanResourceManager,
    VkAccelerationStructureKHR _accelerationStructure,
    Handle< Buffer_t > _backingBuffer,
    AccelerationStructureType _type,
    VkAccelerationStructureBuildSizesInfoKHR _buildSizes,
    VkBuildAccelerationStructureFlagsKHR _buildFlags
)

function createAccelerationBuffer

1
2
3
4
5
static Handle< Buffer_t > createAccelerationBuffer(
    Handle< Device_t > deviceHandle,
    VulkanResourceManager * _vulkanResourceManager,
    VkDeviceSize size
)

Public Attributes Documentation

variable deviceHandle

1
Handle< Device_t > deviceHandle;

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable accelerationStructure

1
VkAccelerationStructureKHR accelerationStructure { VK_NULL_HANDLE };

variable backingBuffer

1
Handle< Buffer_t > backingBuffer;

variable type

1
AccelerationStructureType type;

variable buildSizes

1
VkAccelerationStructureBuildSizesInfoKHR buildSizes;

variable buildFlags

1
VkBuildAccelerationStructureFlagsKHR buildFlags;

Updated on 2024-12-22 at 00:08:03 +0000