Skip to content

LiteFX::Rendering::Backends::VulkanDevice

Implements a Vulkan graphics device.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

class [[dllimport, dllexport]] VulkanDevice final
    : public GraphicsDevice<VulkanGraphicsFactory, VulkanSurface, VulkanGraphicsAdapter, VulkanSwapChain, VulkanQueue, VulkanRenderPass, VulkanRenderPipeline, VulkanComputePipeline, VulkanRayTracingPipeline, VulkanBarrier>
    , public Resource<VkDevice>

Base Classes

Type Aliases

Member Functions

NameDescription
~VulkanDevice [destructor] [virtual]Destructor
adapter [virtual]Returns the graphics adapter, the device uses for drawing.
allocateGlobalDescriptors Allocates a range of descriptors in the global descriptor heaps for the provided descriptorSet.
bindDescriptorSet Binds the descriptors of the descriptor set to the global descriptor heaps.
bindGlobalDescriptorHeaps Binds the global descriptor heap.
buildBarrier [virtual]Returns a builder for a Barrier.
buildComputePipeline [virtual]Returns a builder for a ComputePipeline.
buildInputAssembler [virtual]Returns a builder for a InputAssembler.
buildPipelineLayout [virtual]Returns a builder for a PipelineLayout.
buildRasterizer [virtual]Returns a builder for a Rasterizer.
buildRayTracingPipeline Returns a builder for a RayTracingPipeline.
buildRenderPass Returns a builder for a RenderPass.
buildRenderPipeline Returns a builder for a RenderPipeline.
buildShaderProgram [virtual]Returns a builder for a ShaderProgram.
computeAccelerationStructureSizes computeAccelerationStructureSizes overloads
createQueue [virtual]Attempts to create a new queue that supports the combination of queue types specified by the type parameter.
defaultQueue [virtual]Returns the instance of the default ICommandQueue that supports the combination of queue types specified by the type parameter.
descriptorSize Resolves the binary size for a descriptor of type.
enabledExtensions Returns the array that stores the extensions that were used to initialize the device.
factory [virtual]Returns the factory instance, used to create instances from the device.
handle [virtual]Returns the resource managed by the class.
makeBarrier [virtual]Creates a memory barrier instance.
makeFrameBuffer Creates a new frame buffer instance.
maximumMultiSamplingLevel [virtual]Queries the device for the maximum supported number of multi-sampling levels.
queueFamilyIndices Returns the indices of all queue families with support for type.
releaseGlobalDescriptors Releases a range of descriptors from the global descriptor heaps.
setDebugName Sets the debug name for an object.
state [virtual]Returns the device state that can be used to manage resources.
surface [virtual]Returns the surface, the device draws to.
swapChain Returns the swap chain, that contains the back and front buffers used for presentation.
ticksPerMillisecond [virtual]Returns the number of GPU ticks per milliseconds.
updateGlobalDescriptors Updates a range of descriptors in the global buffer descriptor heap with the descriptors from descriptorSet.
wait [virtual]Waits until all queues allocated from the device have finished the work issued prior to this point.

Static Member Functions

NameDescription
create Initializes the device instance.

Static Data Members

NameDescription
DEFAULT_DESCRIPTOR_HEAP_SIZE The default size for the global buffer heap in bytes.

Protected Member Functions

NameDescription
operator= Assignment operators
handle [virtual]Returns the resource managed by the class.

Friends

NameDescription
LiteFX::Rendering::Backends::VulkanBackendDefines a rendering backend that creates a Vulkan device.
LiteFX::SharedObject::AllocatorAn allocator used to allocate the shared object.
LiteFX::Rendering::Backends::VulkanDevice::VulkanDeviceImpl
LiteFX::PimplPtrA smart pointer that manages an implementation instance for a public interface class.