Documentation ¶
Index ¶
Constants ¶
const ( // ExtensionName is "VK_KHR_maintenance1" // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_maintenance1.html ExtensionName string = C.VK_KHR_MAINTENANCE1_EXTENSION_NAME // FormatFeatureTransferDst specifies that an Image can be used as a destination Image for copy // commands and clear commands // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFormatFeatureFlagBits.html FormatFeatureTransferDst core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR // FormatFeatureTransferSrc specifies that an Image can be used as a source Image for copy commands // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFormatFeatureFlagBits.html FormatFeatureTransferSrc core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR // ImageCreate2DArrayCompatible specifies that the Image can be used to create an ImageView of // type core1_0.ImageViewType2D or core1_0.ImageViewType2DArray // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkImageCreateFlagBits.html ImageCreate2DArrayCompatible core1_0.ImageCreateFlags = C.VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR // VkErrorOutOfPoolMemory indicates a pool memory allocation has failed // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkResult.html VkErrorOutOfPoolMemory common.VkResult = C.VK_ERROR_OUT_OF_POOL_MEMORY_KHR )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandPoolTrimFlags ¶
type CommandPoolTrimFlags int32
CommandPoolTrimFlags is reserved for future use
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkCommandPoolTrimFlagsKHR.html
func (CommandPoolTrimFlags) Register ¶
func (f CommandPoolTrimFlags) Register(str string)
func (CommandPoolTrimFlags) String ¶
func (f CommandPoolTrimFlags) String() string
type Extension ¶
type Extension interface { // TrimCommandPool trims a CommandPool // // commandPool - The CommandPool to trim // // flags - Reserved for future use // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkTrimCommandPool.html TrimCommandPool(commandPool core1_0.CommandPool, flags CommandPoolTrimFlags) }
Extension contains all commands for the khr_maintenance1 extension
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_maintenance1.html
type VulkanExtension ¶
type VulkanExtension struct {
// contains filtered or unexported fields
}
VulkanExtension is an implementation of the Extension interface that actually communicates with Vulkan. This is the default implementation. See the interface for more documentation.
func CreateExtensionFromDevice ¶
func CreateExtensionFromDevice(device core1_0.Device) *VulkanExtension
CreateExtensionFromDevice produces an Extension object from a Device with khr_maintenance1 loaded
func CreateExtensionFromDriver ¶
func CreateExtensionFromDriver(driver khr_maintenance1_driver.Driver) *VulkanExtension
CreateExtensionFromDriver generates an Extension from a driver.Driver object- this is usually used in tests to build an Extension from mock drivers
func (*VulkanExtension) TrimCommandPool ¶
func (e *VulkanExtension) TrimCommandPool(commandPool core1_0.CommandPool, flags CommandPoolTrimFlags)