Documentation ¶
Index ¶
- type Shim
- type VulkanShim
- func (s *VulkanShim) BufferMemoryRequirements2(o core1_1.BufferMemoryRequirementsInfo2, out *core1_1.MemoryRequirements2) error
- func (s *VulkanShim) ImageMemoryRequirements2(o core1_1.ImageMemoryRequirementsInfo2, out *core1_1.MemoryRequirements2) error
- func (s *VulkanShim) ImageSparseMemoryRequirements2(o core1_1.ImageSparseMemoryRequirementsInfo2, ...) ([]*core1_1.SparseImageMemoryRequirements2, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shim ¶
type Shim interface { // BufferMemoryRequirements2 returns the memory requirements for the specified Vulkan object // // 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(o core1_1.BufferMemoryRequirementsInfo2, out *core1_1.MemoryRequirements2) error // ImageMemoryRequirements2 returns the memory requirements for the specified Vulkan object // // 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(o core1_1.ImageMemoryRequirementsInfo2, out *core1_1.MemoryRequirements2) error // ImageSparseMemoryRequirements2 queries the memory requirements for a sparse 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(o core1_1.ImageSparseMemoryRequirementsInfo2, outDataFactory func() *core1_1.SparseImageMemoryRequirements2) ([]*core1_1.SparseImageMemoryRequirements2, error) }
Shim contains all commands for the khr_get_memory_requirements2 extension
type VulkanShim ¶
type VulkanShim struct {
// contains filtered or unexported fields
}
func NewShim ¶
func NewShim(extension khr_get_memory_requirements2.Extension, device core1_0.Device) *VulkanShim
func (*VulkanShim) BufferMemoryRequirements2 ¶
func (s *VulkanShim) BufferMemoryRequirements2(o core1_1.BufferMemoryRequirementsInfo2, out *core1_1.MemoryRequirements2) error
func (*VulkanShim) ImageMemoryRequirements2 ¶
func (s *VulkanShim) ImageMemoryRequirements2(o core1_1.ImageMemoryRequirementsInfo2, out *core1_1.MemoryRequirements2) error
func (*VulkanShim) ImageSparseMemoryRequirements2 ¶
func (s *VulkanShim) ImageSparseMemoryRequirements2(o core1_1.ImageSparseMemoryRequirementsInfo2, outDataFactory func() *core1_1.SparseImageMemoryRequirements2) ([]*core1_1.SparseImageMemoryRequirements2, error)
Click to show internal directories.
Click to hide internal directories.