khr_dedicated_allocation

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryDedicatedAllocateInfo

type MemoryDedicatedAllocateInfo struct {
	// Image is nil or the Image object which this memory will be bound to
	Image core1_0.Image
	// Buffer is nil or the Buffer object this memory will be bound to
	Buffer core1_0.Buffer

	common.NextOptions
}

MemoryDedicatedAllocateInfo specifies a dedicated memory allocation resource

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkMemoryDedicatedAllocateInfo.html

func (MemoryDedicatedAllocateInfo) PopulateCPointer

func (o MemoryDedicatedAllocateInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

type MemoryDedicatedRequirements

type MemoryDedicatedRequirements struct {
	// PrefersDedicatedAllocation specifies that the implementation would prefer a dedicated
	// allocation for this resource. The application is still free to suballocate the resource
	// but it may get better performance if a dedicated allocation is used
	PrefersDedicatedAllocation bool
	// RequiresDedicatedAllocation specifies that a dedicated allocation is required for this resource
	RequiresDedicatedAllocation bool

	common.NextOutData
}

MemoryDedicatedRequirements describes dedicated allocation requirements of Buffer and Image resources

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkMemoryDedicatedRequirements.html

func (*MemoryDedicatedRequirements) PopulateHeader

func (o *MemoryDedicatedRequirements) PopulateHeader(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (*MemoryDedicatedRequirements) PopulateOutData

func (o *MemoryDedicatedRequirements) PopulateOutData(cDataPointer unsafe.Pointer, helpers ...any) (next unsafe.Pointer, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL