Nebula
Loading...
Searching...
No Matches
Vulkan::VkTypes Class Reference

#include <vktypes.h>

Classes

struct  VkBlockDimensions
 

Static Public Member Functions

static VkFormat AsVkFormat (CoreGraphics::PixelFormat::Code p)
 convert Nebula pixel format to Vulkan pixel format
 
static bool IsCompressedFormat (VkFormat p)
 returns true if format is compressed
 
static VkBlockDimensions AsVkBlockSize (CoreGraphics::PixelFormat::Code p)
 convert pixel format to block size
 
static VkBlockDimensions AsVkBlockSize (VkFormat fmt)
 convert pixel format to block size
 
static VkFormat AsVkMappableImageFormat (VkFormat fmt)
 convert Vulkan image compressed format to one which is mappable
 
static VkFormat AsVkDataFormat (CoreGraphics::PixelFormat::Code p)
 convert Nebula pixel format to Vulkan data format
 
static VkSampleCountFlagBits AsVkSampleFlags (const SizeT samples)
 convert uint to vulkan sample count
 
static VkImageType AsVkImageType (CoreGraphics::TextureType type)
 convert texture type to vk image type
 
static VkImageViewType AsVkImageViewType (CoreGraphics::TextureType type)
 convert texture type to vk view type
 
static CoreGraphics::PixelFormat::Code AsNebulaPixelFormat (VkFormat f)
 convert vulkan format back to nebula format
 
static VkImageAspectFlags AsVkImageAspectFlags (const CoreGraphics::ImageBits bits)
 convert image aspects to Vulkan
 
static VkShaderStageFlags AsVkShaderVisibility (const CoreGraphics::ShaderVisibility vis)
 convert shader visibility to vulkan
 
static VkImageLayout AsVkImageLayout (const CoreGraphics::ImageLayout layout)
 convert image layout to vulkan
 
static VkPipelineStageFlags AsVkPipelineStage (const CoreGraphics::PipelineStage stage)
 Convert pipeline stage to Vk pipeline stage.
 
static VkAccessFlags AsVkAccessFlags (const CoreGraphics::PipelineStage stage)
 Convert pipeline stage and pipeline access to Vk access flags.
 
static VkImageLayout AsVkImageLayout (const CoreGraphics::PipelineStage stage, bool depthStencil=false)
 Convert pipeline stage to image layout.
 
static VkPrimitiveTopology AsVkPrimitiveType (CoreGraphics::PrimitiveTopology::Code t)
 convert primitive topology to vulkan
 
static uint32_t AsVkSize (CoreGraphics::VertexComponent::Format f)
 convert vertex format to size
 
static uint32_t AsVkNumComponents (CoreGraphics::VertexComponent::Format f)
 convert vertex format to number of components
 
static VkFormat AsVkVertexType (CoreGraphics::VertexComponent::Format f)
 convert vertex component type to OGL4 symbolic type (single-element)
 

Member Function Documentation

◆ AsNebulaPixelFormat()

CoreGraphics::PixelFormat::Code Vulkan::VkTypes::AsNebulaPixelFormat ( VkFormat f)
static

convert vulkan format back to nebula format

◆ AsVkAccessFlags()

VkAccessFlags Vulkan::VkTypes::AsVkAccessFlags ( const CoreGraphics::PipelineStage stage)
static

Convert pipeline stage and pipeline access to Vk access flags.

◆ AsVkBlockSize() [1/2]

VkTypes::VkBlockDimensions Vulkan::VkTypes::AsVkBlockSize ( CoreGraphics::PixelFormat::Code p)
static

convert pixel format to block size

◆ AsVkBlockSize() [2/2]

Vulkan::VkTypes::VkBlockDimensions Vulkan::VkTypes::AsVkBlockSize ( VkFormat fmt)
static

convert pixel format to block size

◆ AsVkDataFormat()

VkFormat Vulkan::VkTypes::AsVkDataFormat ( CoreGraphics::PixelFormat::Code p)
static

convert Nebula pixel format to Vulkan data format

◆ AsVkFormat()

VkFormat Vulkan::VkTypes::AsVkFormat ( CoreGraphics::PixelFormat::Code p)
static

convert Nebula pixel format to Vulkan pixel format

◆ AsVkImageAspectFlags()

VkImageAspectFlags Vulkan::VkTypes::AsVkImageAspectFlags ( const CoreGraphics::ImageBits bits)
static

convert image aspects to Vulkan

◆ AsVkImageLayout() [1/2]

VkImageLayout Vulkan::VkTypes::AsVkImageLayout ( const CoreGraphics::ImageLayout layout)
static

convert image layout to vulkan

◆ AsVkImageLayout() [2/2]

VkImageLayout Vulkan::VkTypes::AsVkImageLayout ( const CoreGraphics::PipelineStage stage,
bool depthStencil = false )
static

Convert pipeline stage to image layout.

◆ AsVkImageType()

VkImageType Vulkan::VkTypes::AsVkImageType ( CoreGraphics::TextureType type)
static

convert texture type to vk image type

◆ AsVkImageViewType()

VkImageViewType Vulkan::VkTypes::AsVkImageViewType ( CoreGraphics::TextureType type)
static

convert texture type to vk view type

◆ AsVkMappableImageFormat()

VkFormat Vulkan::VkTypes::AsVkMappableImageFormat ( VkFormat fmt)
static

convert Vulkan image compressed format to one which is mappable

◆ AsVkNumComponents()

uint32_t Vulkan::VkTypes::AsVkNumComponents ( CoreGraphics::VertexComponent::Format f)
static

convert vertex format to number of components

◆ AsVkPipelineStage()

VkPipelineStageFlags Vulkan::VkTypes::AsVkPipelineStage ( const CoreGraphics::PipelineStage stage)
static

Convert pipeline stage to Vk pipeline stage.

◆ AsVkPrimitiveType()

VkPrimitiveTopology Vulkan::VkTypes::AsVkPrimitiveType ( CoreGraphics::PrimitiveTopology::Code t)
static

convert primitive topology to vulkan

◆ AsVkSampleFlags()

VkSampleCountFlagBits Vulkan::VkTypes::AsVkSampleFlags ( const SizeT samples)
static

convert uint to vulkan sample count

◆ AsVkShaderVisibility()

VkShaderStageFlags Vulkan::VkTypes::AsVkShaderVisibility ( const CoreGraphics::ShaderVisibility vis)
static

convert shader visibility to vulkan

◆ AsVkSize()

uint32_t Vulkan::VkTypes::AsVkSize ( CoreGraphics::VertexComponent::Format f)
static

convert vertex format to size

◆ AsVkVertexType()

VkFormat Vulkan::VkTypes::AsVkVertexType ( CoreGraphics::VertexComponent::Format f)
static

convert vertex component type to OGL4 symbolic type (single-element)

◆ IsCompressedFormat()

bool Vulkan::VkTypes::IsCompressedFormat ( VkFormat p)
static

returns true if format is compressed


The documentation for this class was generated from the following files: