Documentation ¶
Index ¶
- Constants
- type BufferMemoryRequirementsInfo2
- type Extension
- type ImageMemoryRequirementsInfo2
- type ImageSparseMemoryRequirementsInfo2
- type MemoryRequirements2
- type SparseImageMemoryRequirements2
- type VulkanExtension
- func (e *VulkanExtension) BufferMemoryRequirements2(device core1_0.Device, o BufferMemoryRequirementsInfo2, ...) error
- func (e *VulkanExtension) ImageMemoryRequirements2(device core1_0.Device, o ImageMemoryRequirementsInfo2, ...) error
- func (e *VulkanExtension) ImageSparseMemoryRequirements2(device core1_0.Device, o ImageSparseMemoryRequirementsInfo2, ...) ([]*SparseImageMemoryRequirements2, error)
Constants ¶
const ( // ExtensionName is "VK_KHR_get_memory_requirements2" // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_get_memory_requirements2.html ExtensionName string = C.VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferMemoryRequirementsInfo2 ¶
type BufferMemoryRequirementsInfo2 struct { // Buffer is the Buffer to query Buffer core1_0.Buffer common.NextOptions }
BufferMemoryRequirementsInfo2 has no documentation
type Extension ¶
type Extension interface { // BufferMemoryRequirements2 returns the memory requirements for the specified Vulkan object // // device - The Device which owns the Buffer // // o - Contains parameters required for the memory requirements query // // out - A pre-allocated object in which the memory requirements of the Buffer object will be // populated. It should include any desired chained OutData objects // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetBufferMemoryRequirements2.html BufferMemoryRequirements2(device core1_0.Device, o BufferMemoryRequirementsInfo2, out *MemoryRequirements2) error // ImageMemoryRequirements2 returns the memory requirements for the specified Vulkan object // // device - The Device which owns the Image // // o - Contains parameters required for the memory requirements query // // out - A pre-allocated object in which the memory requirements of the Image object will be // populated. It should include any desired chained OutData objects // // https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetImageMemoryRequirements2.html ImageMemoryRequirements2(device core1_0.Device, o ImageMemoryRequirementsInfo2, out *MemoryRequirements2) error // ImageSparseMemoryRequirements2 queries the memory requirements for a sparse Image // // device - The Device which owns the Image // // o - Contains parameters required for the memory requirements query // // outDataFactory - This method can be provided to allocate each SparseImageMemoryRequirements2 object // that is returned, along with any chained OutData structures. It can also be left nil, in which case // SparseImageMemoryRequirements2 will be allocated with no chained structures. ImageSparseMemoryRequirements2(device core1_0.Device, o ImageSparseMemoryRequirementsInfo2, outDataFactory func() *SparseImageMemoryRequirements2) ([]*SparseImageMemoryRequirements2, error) }
Extension contains all commands for the khr_get_memory_requirements2 extension
type ImageMemoryRequirementsInfo2 ¶
type ImageMemoryRequirementsInfo2 struct { // Image is the Image to query Image core1_0.Image common.NextOptions }
ImageMemoryRequirementsInfo2 has no documentation
type ImageSparseMemoryRequirementsInfo2 ¶
type ImageSparseMemoryRequirementsInfo2 struct { // Image is the Image to query Image core1_0.Image common.NextOptions }
ImageSparseMemoryRequirementsInfo2 has no documentation
type MemoryRequirements2 ¶
type MemoryRequirements2 struct { // MemoryRequirements describes the memory requirements of the resource MemoryRequirements core1_0.MemoryRequirements common.NextOutData }
MemoryRequirements2 specifies memory requirements
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkMemoryRequirements2.html
func (*MemoryRequirements2) PopulateHeader ¶
func (*MemoryRequirements2) PopulateOutData ¶
type SparseImageMemoryRequirements2 ¶
type SparseImageMemoryRequirements2 struct { // MemoryRequirements describes the memory requirements of the sparse image MemoryRequirements core1_0.SparseImageMemoryRequirements common.NextOutData }
SparseImageMemoryRequirements2 has no documentation
func (*SparseImageMemoryRequirements2) PopulateHeader ¶
func (*SparseImageMemoryRequirements2) PopulateOutData ¶
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_get_memory_requirements2 loaded
func CreateExtensionFromDriver ¶
func CreateExtensionFromDriver(driver khr_get_memory_requirements2_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) BufferMemoryRequirements2 ¶
func (e *VulkanExtension) BufferMemoryRequirements2(device core1_0.Device, o BufferMemoryRequirementsInfo2, out *MemoryRequirements2) error
func (*VulkanExtension) ImageMemoryRequirements2 ¶
func (e *VulkanExtension) ImageMemoryRequirements2(device core1_0.Device, o ImageMemoryRequirementsInfo2, out *MemoryRequirements2) error
func (*VulkanExtension) ImageSparseMemoryRequirements2 ¶
func (e *VulkanExtension) ImageSparseMemoryRequirements2(device core1_0.Device, o ImageSparseMemoryRequirementsInfo2, outDataFactory func() *SparseImageMemoryRequirements2) ([]*SparseImageMemoryRequirements2, error)