Documentation ¶
Index ¶
- Constants
- Variables
- func AllocOptionSlice[T any, O Options](allocator *cgoparam.Allocator, o []O) (*T, error)
- func AllocOptions(allocator *cgoparam.Allocator, o Options, ...) (unsafe.Pointer, error)
- func AllocOutDataHeader(allocator *cgoparam.Allocator, o OutData, ...) (unsafe.Pointer, error)
- func AllocOutDataHeaderSlice[T any, O OutData](allocator *cgoparam.Allocator, o []O) (*T, error)
- func AllocSlice[T any, A CAllocatable](allocator *cgoparam.Allocator, a []A) (*T, error)
- func ConvertSlice[T any, U any](values []T, mapping func(in T) U) []U
- func OfType[T any](values []any) (T, bool)
- func PopulateOutData(o OutData, cPointer unsafe.Pointer, helpers ...any) error
- func PopulateOutDataSlice[T any, O OutData](o []O, cSlicePointer unsafe.Pointer, helpers ...any) error
- func TimeoutNanoseconds(timeout time.Duration) uint64
- type APIVersion
- func (v APIVersion) IsAtLeast(otherVersion APIVersion) bool
- func (v APIVersion) Major() uint32
- func (v APIVersion) MatchesMajorVersion(otherVersion APIVersion) bool
- func (v APIVersion) MatchesMinorVersion(otherVersion APIVersion) bool
- func (v APIVersion) Max(otherVersion APIVersion) APIVersion
- func (v APIVersion) Min(otherVersion APIVersion) APIVersion
- func (v APIVersion) Minor() uint32
- func (v APIVersion) Patch() uint32
- func (v APIVersion) String() string
- func (v APIVersion) Variant() uint32
- type AllocationCallbackOptions
- type AllocationFunction
- type CAllocatable
- type FlagStringMapping
- type FreeFunction
- type InternalAllocationNotification
- type InternalAllocationType
- type InternalFreeNotification
- type NextOptions
- type NextOutData
- type Options
- type OutData
- type ReallocationFunction
- type SystemAllocationScope
- type Version
- type VkResult
- type VkResultError
Constants ¶
View Source
const (
InternalAllocationTypeExecutable = C.VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE
)
View Source
const NoTimeout = time.Duration(^int64(0))
Variables ¶
View Source
var ByteOrder = binary.LittleEndian
Functions ¶
func AllocOptionSlice ¶
func AllocOptions ¶
func AllocOutDataHeader ¶
func AllocOutDataHeaderSlice ¶
func AllocSlice ¶
func AllocSlice[T any, A CAllocatable](allocator *cgoparam.Allocator, a []A) (*T, error)
func ConvertSlice ¶
func PopulateOutData ¶
func PopulateOutDataSlice ¶
func TimeoutNanoseconds ¶
Types ¶
type APIVersion ¶
type APIVersion uint32
const ( Vulkan1_0 APIVersion = C.VK_API_VERSION_1_0 Vulkan1_1 APIVersion = C.VK_API_VERSION_1_1 Vulkan1_2 APIVersion = C.VK_API_VERSION_1_2 )
func (APIVersion) IsAtLeast ¶
func (v APIVersion) IsAtLeast(otherVersion APIVersion) bool
func (APIVersion) Major ¶
func (v APIVersion) Major() uint32
func (APIVersion) MatchesMajorVersion ¶
func (v APIVersion) MatchesMajorVersion(otherVersion APIVersion) bool
func (APIVersion) MatchesMinorVersion ¶
func (v APIVersion) MatchesMinorVersion(otherVersion APIVersion) bool
func (APIVersion) Max ¶
func (v APIVersion) Max(otherVersion APIVersion) APIVersion
func (APIVersion) Min ¶
func (v APIVersion) Min(otherVersion APIVersion) APIVersion
func (APIVersion) Minor ¶
func (v APIVersion) Minor() uint32
func (APIVersion) Patch ¶
func (v APIVersion) Patch() uint32
func (APIVersion) String ¶
func (v APIVersion) String() string
func (APIVersion) Variant ¶
func (v APIVersion) Variant() uint32
type AllocationCallbackOptions ¶
type AllocationCallbackOptions struct { UserData any Allocation AllocationFunction Reallocation ReallocationFunction Free FreeFunction InternalAllocation InternalAllocationNotification InternalFree InternalFreeNotification }
type AllocationFunction ¶
type CAllocatable ¶
type FlagStringMapping ¶
type FlagStringMapping[T flags] struct {
// contains filtered or unexported fields
}
func NewFlagStringMapping ¶
func NewFlagStringMapping[T flags]() FlagStringMapping[T]
func (FlagStringMapping[T]) FlagsToString ¶
func (m FlagStringMapping[T]) FlagsToString(value T) string
func (FlagStringMapping[T]) Register ¶
func (m FlagStringMapping[T]) Register(value T, str string)
type FreeFunction ¶
type InternalAllocationNotification ¶
type InternalAllocationNotification func(userData any, size int, allocationType InternalAllocationType, allocationScope SystemAllocationScope)
type InternalAllocationType ¶
type InternalAllocationType int32
func (InternalAllocationType) Register ¶
func (e InternalAllocationType) Register(str string)
func (InternalAllocationType) String ¶
func (e InternalAllocationType) String() string
type InternalFreeNotification ¶
type InternalFreeNotification func(userData any, size int, allocationType InternalAllocationType, allocationScope SystemAllocationScope)
type NextOptions ¶
type NextOptions struct {
Next Options
}
func (NextOptions) NextOptionsInChain ¶
func (n NextOptions) NextOptionsInChain() Options
type NextOutData ¶
type NextOutData struct {
Next OutData
}
func (NextOutData) NextOutDataInChain ¶
func (n NextOutData) NextOutDataInChain() OutData
type ReallocationFunction ¶
type SystemAllocationScope ¶
type SystemAllocationScope int32
const ( SystemAllocationScopeCommand SystemAllocationScope = C.VK_SYSTEM_ALLOCATION_SCOPE_COMMAND SystemAllocationScopeObject SystemAllocationScope = C.VK_SYSTEM_ALLOCATION_SCOPE_OBJECT SystemAllocationScopeCache SystemAllocationScope = C.VK_SYSTEM_ALLOCATION_SCOPE_CACHE SystemAllocationScopeDevice SystemAllocationScope = C.VK_SYSTEM_ALLOCATION_SCOPE_DEVICE SystemAllocationScopeInstance SystemAllocationScope = C.VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE )
func (SystemAllocationScope) Register ¶
func (e SystemAllocationScope) Register(str string)
func (SystemAllocationScope) String ¶
func (e SystemAllocationScope) String() string
type VkResultError ¶
type VkResultError struct {
// contains filtered or unexported fields
}
func (*VkResultError) Error ¶
func (err *VkResultError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.