Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ExtensionName is "VK_KHR_bind_memory2" // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_bind_memory2.html ExtensionName string = C.VK_KHR_BIND_MEMORY_2_EXTENSION_NAME // ImageCreateAlias specifies that two Image objects created with the same creation parameters // and aliased to the same memory can interpret the contents of the memory consistently each // other // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkImageCreateFlagBits.html ImageCreateAlias core1_0.ImageCreateFlags = C.VK_IMAGE_CREATE_ALIAS_BIT_KHR )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindBufferMemoryInfo ¶
type BindBufferMemoryInfo = core1_1.BindBufferMemoryInfo
type BindImageMemoryInfo ¶
type BindImageMemoryInfo = core1_1.BindImageMemoryInfo
type ExtensionDriver ¶
type ExtensionDriver interface {
// BindBufferMemory2 binds DeviceMemory to Buffer objects
//
// device - The core1_0.Device which owns the core1_0.DeviceMemory and core1_0.Buffer
//
// options - A slice of BindBufferMemoryInfo structures describing Buffer objects and memory to bind
//
// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkBindBufferMemory2.html
BindBufferMemory2(options ...BindBufferMemoryInfo) (common.VkResult, error)
// BindImageMemory2 binds DeviceMemory to Image objects
//
// device - The core1_0.Device which owns the core1_0.DeviceMemory and core1_0.Buffer
//
// options - A slice of BindImageMemoryInfo structures describing Image objects and memory to bind
//
// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkBindImageMemory2.html
BindImageMemory2(options ...BindImageMemoryInfo) (common.VkResult, error)
}
ExtensionDriver contains all the commands for the khr_bind_memory2 extension
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_bind_memory2.html
func CreateExtensionDriverFromCoreDriver ¶
func CreateExtensionDriverFromCoreDriver(coreDriver core1_0.DeviceDriver) ExtensionDriver
CreateExtensionDriverFromCoreDriver produces an ExtensionDriver object from a Device with khr_bind_memory2 loaded
type VulkanExtensionDriver ¶
type VulkanExtensionDriver struct {
// contains filtered or unexported fields
}
VulkanExtensionDriver is an implementation of the ExtensionDriver interface that actually communicates with Vulkan. This is the default implementation. See the interface for more documentation.
func CreateExtensionDriverFromLoader ¶
func CreateExtensionDriverFromLoader(driver khr_bind_memory2_loader.Loader, device core1_0.Device) *VulkanExtensionDriver
CreateExtensionDriverFromLoader generates an ExtensionDriver from a loader.Loader object- this is usually used in tests to build an ExtensionDriver from mock drivers
func (*VulkanExtensionDriver) BindBufferMemory2 ¶
func (e *VulkanExtensionDriver) BindBufferMemory2(options ...BindBufferMemoryInfo) (common.VkResult, error)
func (*VulkanExtensionDriver) BindImageMemory2 ¶
func (e *VulkanExtensionDriver) BindImageMemory2(options ...BindImageMemoryInfo) (common.VkResult, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.