Class VulkanConvert¶
Namespace: Apogee.Graphics.Vulkan
Assembly: Apogee.Graphics.dll
The engine's enumerations as Vulkan's. The numbers are the same on purpose (see Enums.cs), so these are casts.
public static class VulkanConvert
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Aspect(PixelFormat)¶
All the aspects of an image of this format (depth and stencil for a depth-stencil format).
public static VkImageAspectFlagBits Aspect(PixelFormat format)
Parameters¶
format PixelFormat
Returns¶
VkImageAspectFlagBits
SampledAspect(PixelFormat)¶
The aspect a sampled view reads: depth only, for a depth-stencil format.
public static VkImageAspectFlagBits SampledAspect(PixelFormat format)
Parameters¶
format PixelFormat
Returns¶
VkImageAspectFlagBits
ToEngine(VkFormat)¶
public static PixelFormat ToEngine(this VkFormat format)
Parameters¶
format VkFormat
Returns¶
ToVulkan(PixelFormat)¶
public static VkFormat ToVulkan(this PixelFormat format)
Parameters¶
format PixelFormat
Returns¶
VkFormat
ToVulkan(BufferUsage)¶
public static VkBufferUsageFlagBits ToVulkan(this BufferUsage usage)
Parameters¶
usage BufferUsage
Returns¶
VkBufferUsageFlagBits
ToVulkan(ImageUsage)¶
public static VkImageUsageFlagBits ToVulkan(this ImageUsage usage)
Parameters¶
usage ImageUsage
Returns¶
VkImageUsageFlagBits
ToVulkan(SampleCount)¶
public static VkSampleCountFlagBits ToVulkan(this SampleCount samples)
Parameters¶
samples SampleCount
Returns¶
VkSampleCountFlagBits
ToVulkan(CullMode)¶
public static VkCullModeFlagBits ToVulkan(this CullMode mode)
Parameters¶
mode CullMode
Returns¶
VkCullModeFlagBits
ToVulkan(FrontFace)¶
public static VkFrontFace ToVulkan(this FrontFace face)
Parameters¶
face FrontFace
Returns¶
VkFrontFace
ToVulkan(CompareOp)¶
public static VkCompareOp ToVulkan(this CompareOp op)
Parameters¶
op CompareOp
Returns¶
VkCompareOp
ToVulkan(PrimitiveTopology)¶
public static VkPrimitiveTopology ToVulkan(this PrimitiveTopology topology)
Parameters¶
topology PrimitiveTopology
Returns¶
VkPrimitiveTopology
ToVulkan(Filter)¶
public static VkFilter ToVulkan(this Filter filter)
Parameters¶
filter Filter
Returns¶
VkFilter
ToVulkan(MipmapMode)¶
public static VkSamplerMipmapMode ToVulkan(this MipmapMode mode)
Parameters¶
mode MipmapMode
Returns¶
VkSamplerMipmapMode
ToVulkan(AddressMode)¶
public static VkSamplerAddressMode ToVulkan(this AddressMode mode)
Parameters¶
mode AddressMode
Returns¶
VkSamplerAddressMode
ToVulkan(IndexFormat)¶
public static VkIndexType ToVulkan(this IndexFormat format)
Parameters¶
format IndexFormat
Returns¶
VkIndexType