common

package
v0.0.0-...-d75f8dc Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 8 Imported by: 69

Documentation

Index

Constants

View Source
const AttachmentUnused int = -1
View Source
const (
	InternalAllocationExecutable = 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 AllocOptionSlice[T any, O Options](allocator *cgoparam.Allocator, o []O) (*T, error)

func AllocOptions

func AllocOptions(allocator *cgoparam.Allocator, o Options, preallocatedPointer ...unsafe.Pointer) (unsafe.Pointer, error)

func AllocSlice

func AllocSlice[T any, A CAllocatable](allocator *cgoparam.Allocator, a []A) (*T, error)

func ConvertSlice

func ConvertSlice[T any, U any](values []T, mapping func(in T) U) []U

func OfType

func OfType[T any](values []any) (T, bool)

func PopulateOutData

func PopulateOutData(o Options, cPointer unsafe.Pointer, helpers ...any) error

func PopulateOutDataSlice

func PopulateOutDataSlice[T any, O Options](o []O, cSlicePointer unsafe.Pointer, helpers ...any) error

func TimeoutNanoseconds

func TimeoutNanoseconds(timeout time.Duration) uint64

Types

type APIVersion

type APIVersion uint32

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 AccessFlags

type AccessFlags int32

func (AccessFlags) Register

func (f AccessFlags) Register(str string)

func (AccessFlags) String

func (f AccessFlags) String() string

type AllocationCallbackOptions

type AllocationCallbackOptions struct {
	UserData           any
	Allocation         AllocationFunction
	Reallocation       ReallocationFunction
	Free               FreeFunction
	InternalAllocation InternalAllocationNotification
	InternalFree       InternalFreeNotification
}

type AllocationFunction

type AllocationFunction func(userData any, size int, alignment int, allocationScope SystemAllocationScope) unsafe.Pointer

type AttachmentDescriptionFlags

type AttachmentDescriptionFlags int32

func (AttachmentDescriptionFlags) Register

func (f AttachmentDescriptionFlags) Register(str string)

func (AttachmentDescriptionFlags) String

type AttachmentLoadOp

type AttachmentLoadOp int32

func (AttachmentLoadOp) Register

func (e AttachmentLoadOp) Register(str string)

func (AttachmentLoadOp) String

func (e AttachmentLoadOp) String() string

type AttachmentReference

type AttachmentReference struct {
	AttachmentIndex int
	Layout          ImageLayout
}

type AttachmentStoreOp

type AttachmentStoreOp int32

func (AttachmentStoreOp) Register

func (e AttachmentStoreOp) Register(str string)

func (AttachmentStoreOp) String

func (e AttachmentStoreOp) String() string

type BeginInfoFlags

type BeginInfoFlags int32

func (BeginInfoFlags) Register

func (f BeginInfoFlags) Register(str string)

func (BeginInfoFlags) String

func (f BeginInfoFlags) String() string

type BlendFactor

type BlendFactor int32

func (BlendFactor) Register

func (e BlendFactor) Register(str string)

func (BlendFactor) String

func (e BlendFactor) String() string

type BlendOp

type BlendOp int32

func (BlendOp) Register

func (e BlendOp) Register(str string)

func (BlendOp) String

func (e BlendOp) String() string

type BorderColor

type BorderColor int32

func (BorderColor) Register

func (e BorderColor) Register(str string)

func (BorderColor) String

func (e BorderColor) String() string

type BufferCreateFlags

type BufferCreateFlags int32

func (BufferCreateFlags) Register

func (f BufferCreateFlags) Register(str string)

func (BufferCreateFlags) String

func (f BufferCreateFlags) String() string

type BufferUsages

type BufferUsages int32

func (BufferUsages) Register

func (f BufferUsages) Register(str string)

func (BufferUsages) String

func (f BufferUsages) String() string

type CAllocatable

type CAllocatable interface {
	PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer) (unsafe.Pointer, error)
}

type ClearColorValue

type ClearColorValue interface {
	PopulateColorUnion(c unsafe.Pointer)
}

type ClearValue

type ClearValue interface {
	PopulateValueUnion(v unsafe.Pointer)
}

type ClearValueDepthStencil

type ClearValueDepthStencil struct {
	Depth   float32
	Stencil uint32
}

func (ClearValueDepthStencil) PopulateValueUnion

func (s ClearValueDepthStencil) PopulateValueUnion(c unsafe.Pointer)

type ClearValueFloat

type ClearValueFloat [4]float32

func (ClearValueFloat) PopulateColorUnion

func (v ClearValueFloat) PopulateColorUnion(c unsafe.Pointer)

func (ClearValueFloat) PopulateValueUnion

func (v ClearValueFloat) PopulateValueUnion(c unsafe.Pointer)

type ClearValueInt32

type ClearValueInt32 [4]int32

func (ClearValueInt32) PopulateColorUnion

func (v ClearValueInt32) PopulateColorUnion(c unsafe.Pointer)

func (ClearValueInt32) PopulateValueUnion

func (v ClearValueInt32) PopulateValueUnion(c unsafe.Pointer)

type ClearValueUint32

type ClearValueUint32 [4]uint32

func (ClearValueUint32) PopulateColorUnion

func (v ClearValueUint32) PopulateColorUnion(c unsafe.Pointer)

func (ClearValueUint32) PopulateValueUnion

func (v ClearValueUint32) PopulateValueUnion(c unsafe.Pointer)

type ColorComponents

type ColorComponents int32

func (ColorComponents) String

func (c ColorComponents) String() string

type ColorSpace

type ColorSpace int32

func (ColorSpace) Register

func (e ColorSpace) Register(str string)

func (ColorSpace) String

func (e ColorSpace) String() string

type CommandBufferLevel

type CommandBufferLevel int32

func (CommandBufferLevel) Register

func (e CommandBufferLevel) Register(str string)

func (CommandBufferLevel) String

func (e CommandBufferLevel) String() string

type CommandBufferResetFlags

type CommandBufferResetFlags int32

func (CommandBufferResetFlags) Register

func (f CommandBufferResetFlags) Register(str string)

func (CommandBufferResetFlags) String

func (f CommandBufferResetFlags) String() string

type CommandPoolCreateFlags

type CommandPoolCreateFlags int32

func (CommandPoolCreateFlags) Register

func (f CommandPoolCreateFlags) Register(str string)

func (CommandPoolCreateFlags) String

func (f CommandPoolCreateFlags) String() string

type CommandPoolResetFlags

type CommandPoolResetFlags int32

func (CommandPoolResetFlags) Register

func (f CommandPoolResetFlags) Register(str string)

func (CommandPoolResetFlags) String

func (f CommandPoolResetFlags) String() string

type CompareOp

type CompareOp int32

func (CompareOp) Register

func (e CompareOp) Register(str string)

func (CompareOp) String

func (e CompareOp) String() string

type ComponentSwizzle

type ComponentSwizzle int32

func (ComponentSwizzle) Register

func (e ComponentSwizzle) Register(str string)

func (ComponentSwizzle) String

func (e ComponentSwizzle) String() string

type CompositeAlphaModes

type CompositeAlphaModes int32

func (CompositeAlphaModes) Register

func (f CompositeAlphaModes) Register(str string)

func (CompositeAlphaModes) String

func (f CompositeAlphaModes) String() string

type CullModes

type CullModes int32

func (CullModes) Register

func (f CullModes) Register(str string)

func (CullModes) String

func (f CullModes) String() string

type DataFormat

type DataFormat int32

func (DataFormat) Register

func (e DataFormat) Register(str string)

func (DataFormat) String

func (e DataFormat) String() string

type DependencyFlags

type DependencyFlags int32

func (DependencyFlags) Register

func (f DependencyFlags) Register(str string)

func (DependencyFlags) String

func (f DependencyFlags) String() string

type DescriptorPoolCreateFlags

type DescriptorPoolCreateFlags int32

func (DescriptorPoolCreateFlags) Register

func (f DescriptorPoolCreateFlags) Register(str string)

func (DescriptorPoolCreateFlags) String

func (f DescriptorPoolCreateFlags) String() string

type DescriptorPoolResetFlags

type DescriptorPoolResetFlags int32

func (DescriptorPoolResetFlags) Register

func (f DescriptorPoolResetFlags) Register(str string)

func (DescriptorPoolResetFlags) String

func (f DescriptorPoolResetFlags) String() string

type DescriptorSetLayoutCreateFlags

type DescriptorSetLayoutCreateFlags int32

func (DescriptorSetLayoutCreateFlags) Register

func (f DescriptorSetLayoutCreateFlags) Register(str string)

func (DescriptorSetLayoutCreateFlags) String

type DescriptorType

type DescriptorType int32

func (DescriptorType) Register

func (e DescriptorType) Register(str string)

func (DescriptorType) String

func (e DescriptorType) String() string

type DeviceQueueCreateFlags

type DeviceQueueCreateFlags int32

func (DeviceQueueCreateFlags) Register

func (f DeviceQueueCreateFlags) Register(str string)

func (DeviceQueueCreateFlags) String

func (f DeviceQueueCreateFlags) String() string

type DynamicState

type DynamicState int32

func (DynamicState) Register

func (e DynamicState) Register(str string)

func (DynamicState) String

func (e DynamicState) String() string

type EventCreateFlags

type EventCreateFlags int32

func (EventCreateFlags) Register

func (f EventCreateFlags) Register(str string)

func (EventCreateFlags) String

func (f EventCreateFlags) String() string

type ExtensionProperties

type ExtensionProperties struct {
	ExtensionName string
	SpecVersion   Version
}

type Extent2D

type Extent2D struct {
	Width  int
	Height int
}

type Extent3D

type Extent3D struct {
	Width  int
	Height int
	Depth  int
}

type FenceCreateFlags

type FenceCreateFlags int32

func (FenceCreateFlags) Register

func (f FenceCreateFlags) Register(str string)

func (FenceCreateFlags) String

func (f FenceCreateFlags) String() string

type Filter

type Filter int32

func (Filter) Register

func (e Filter) Register(str string)

func (Filter) String

func (e Filter) String() string

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 FormatFeatures

type FormatFeatures int32

func (FormatFeatures) Register

func (f FormatFeatures) Register(str string)

func (FormatFeatures) String

func (f FormatFeatures) String() string

type FramebufferCreateFlags

type FramebufferCreateFlags int32

func (FramebufferCreateFlags) Register

func (f FramebufferCreateFlags) Register(str string)

func (FramebufferCreateFlags) String

func (f FramebufferCreateFlags) String() string

type FreeFunction

type FreeFunction func(userData any, memory unsafe.Pointer)

type FrontFace

type FrontFace int32

func (FrontFace) Register

func (e FrontFace) Register(str string)

func (FrontFace) String

func (e FrontFace) String() string

type HaveNext

type HaveNext struct {
	Next Options
}

func (HaveNext) NextInChain

func (n HaveNext) NextInChain() Options

type ImageAspectFlags

type ImageAspectFlags int32

func (ImageAspectFlags) Register

func (f ImageAspectFlags) Register(str string)

func (ImageAspectFlags) String

func (f ImageAspectFlags) String() string

type ImageCreateFlags

type ImageCreateFlags int32

func (ImageCreateFlags) Register

func (f ImageCreateFlags) Register(str string)

func (ImageCreateFlags) String

func (f ImageCreateFlags) String() string

type ImageLayout

type ImageLayout int32

func (ImageLayout) Register

func (e ImageLayout) Register(str string)

func (ImageLayout) String

func (e ImageLayout) String() string

type ImageSubresource

type ImageSubresource struct {
	AspectMask ImageAspectFlags
	MipLevel   uint32
	ArrayLayer uint32
}

type ImageSubresourceLayers

type ImageSubresourceLayers struct {
	AspectMask     ImageAspectFlags
	MipLevel       int
	BaseArrayLayer int
	LayerCount     int
}

type ImageSubresourceRange

type ImageSubresourceRange struct {
	AspectMask     ImageAspectFlags
	BaseMipLevel   int
	LevelCount     int
	BaseArrayLayer int
	LayerCount     int
}

type ImageTiling

type ImageTiling int32

func (ImageTiling) Register

func (e ImageTiling) Register(str string)

func (ImageTiling) String

func (e ImageTiling) String() string

type ImageType

type ImageType int32

func (ImageType) Register

func (e ImageType) Register(str string)

func (ImageType) String

func (e ImageType) String() string

type ImageUsages

type ImageUsages int32

func (ImageUsages) Register

func (f ImageUsages) Register(str string)

func (ImageUsages) String

func (f ImageUsages) String() string

type ImageViewCreateFlags

type ImageViewCreateFlags int32

func (ImageViewCreateFlags) Register

func (f ImageViewCreateFlags) Register(str string)

func (ImageViewCreateFlags) String

func (f ImageViewCreateFlags) String() string

type ImageViewType

type ImageViewType int32

func (ImageViewType) Register

func (e ImageViewType) Register(str string)

func (ImageViewType) String

func (e ImageViewType) String() string

type IndexType

type IndexType int32

func (IndexType) Register

func (e IndexType) Register(str string)

func (IndexType) String

func (e IndexType) String() string

type InputRate

type InputRate int32

func (InputRate) Register

func (e InputRate) Register(str string)

func (InputRate) String

func (e InputRate) String() string

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 LayerProperties

type LayerProperties struct {
	LayerName             string
	SpecVersion           Version
	ImplementationVersion Version
	Description           string
}

type LogicOp

type LogicOp int32

func (LogicOp) Register

func (e LogicOp) Register(str string)

func (LogicOp) String

func (e LogicOp) String() string

type MemoryHeap

type MemoryHeap struct {
	Size  int
	Flags MemoryHeapFlags
}

type MemoryHeapFlags

type MemoryHeapFlags int32

func (MemoryHeapFlags) Register

func (f MemoryHeapFlags) Register(str string)

func (MemoryHeapFlags) String

func (f MemoryHeapFlags) String() string

type MemoryProperties

type MemoryProperties int32

func (MemoryProperties) Register

func (f MemoryProperties) Register(str string)

func (MemoryProperties) String

func (f MemoryProperties) String() string

type MemoryType

type MemoryType struct {
	Properties MemoryProperties
	HeapIndex  int
}

type MipmapMode

type MipmapMode int32

func (MipmapMode) Register

func (e MipmapMode) Register(str string)

func (MipmapMode) String

func (e MipmapMode) String() string

type ObjectType

type ObjectType int32
const (
	ObjectTypeUnknown             ObjectType = C.VK_OBJECT_TYPE_UNKNOWN
	ObjectTypeInstance            ObjectType = C.VK_OBJECT_TYPE_INSTANCE
	ObjectTypePhysicalDevice      ObjectType = C.VK_OBJECT_TYPE_PHYSICAL_DEVICE
	ObjectTypeDevice              ObjectType = C.VK_OBJECT_TYPE_DEVICE
	ObjectTypeQueue               ObjectType = C.VK_OBJECT_TYPE_QUEUE
	ObjectTypeSemaphore           ObjectType = C.VK_OBJECT_TYPE_SEMAPHORE
	ObjectTypeCommandBuffer       ObjectType = C.VK_OBJECT_TYPE_COMMAND_BUFFER
	ObjectTypeFence               ObjectType = C.VK_OBJECT_TYPE_FENCE
	ObjectTypeDeviceMemory        ObjectType = C.VK_OBJECT_TYPE_DEVICE_MEMORY
	ObjectTypeBuffer              ObjectType = C.VK_OBJECT_TYPE_BUFFER
	ObjectTypeImage               ObjectType = C.VK_OBJECT_TYPE_IMAGE
	ObjectTypeEvent               ObjectType = C.VK_OBJECT_TYPE_EVENT
	ObjectTypeQueryPool           ObjectType = C.VK_OBJECT_TYPE_QUERY_POOL
	ObjectTypeBufferView          ObjectType = C.VK_OBJECT_TYPE_BUFFER_VIEW
	ObjectTypeImageView           ObjectType = C.VK_OBJECT_TYPE_IMAGE_VIEW
	ObjectTypeShaderModule        ObjectType = C.VK_OBJECT_TYPE_SHADER_MODULE
	ObjectTypePipelineCache       ObjectType = C.VK_OBJECT_TYPE_PIPELINE_CACHE
	ObjectTypePipelineLayout      ObjectType = C.VK_OBJECT_TYPE_PIPELINE_LAYOUT
	ObjectTypeRenderPass          ObjectType = C.VK_OBJECT_TYPE_RENDER_PASS
	ObjectTypePipeline            ObjectType = C.VK_OBJECT_TYPE_PIPELINE
	ObjectTypeDescriptorSetLayout ObjectType = C.VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT
	ObjectTypeSampler             ObjectType = C.VK_OBJECT_TYPE_SAMPLER
	ObjectTypeDescriptorPool      ObjectType = C.VK_OBJECT_TYPE_DESCRIPTOR_POOL
	ObjectTypeDescriptorSet       ObjectType = C.VK_OBJECT_TYPE_DESCRIPTOR_SET
	ObjectTypeFramebuffer         ObjectType = C.VK_OBJECT_TYPE_FRAMEBUFFER
	ObjectTypeCommandPool         ObjectType = C.VK_OBJECT_TYPE_COMMAND_POOL
)

func (ObjectType) Register

func (e ObjectType) Register(str string)

func (ObjectType) String

func (e ObjectType) String() string

type Offset2D

type Offset2D struct {
	X int
	Y int
}

type Offset3D

type Offset3D struct {
	X int
	Y int
	Z int
}

type Options

type Options interface {
	PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)
	PopulateOutData(cDataPointer unsafe.Pointer, helpers ...any) (next unsafe.Pointer, err error)
	NextInChain() Options
}

type PhysicalDeviceType

type PhysicalDeviceType int32

func (PhysicalDeviceType) Register

func (e PhysicalDeviceType) Register(str string)

func (PhysicalDeviceType) String

func (e PhysicalDeviceType) String() string

type PipelineBindPoint

type PipelineBindPoint int32

func (PipelineBindPoint) Register

func (e PipelineBindPoint) Register(str string)

func (PipelineBindPoint) String

func (e PipelineBindPoint) String() string

type PipelineCacheCreateFlags

type PipelineCacheCreateFlags int32

func (PipelineCacheCreateFlags) Register

func (f PipelineCacheCreateFlags) Register(str string)

func (PipelineCacheCreateFlags) String

func (f PipelineCacheCreateFlags) String() string

type PipelineCacheHeaderVersion

type PipelineCacheHeaderVersion int32
const (
	PipelineCacheHeaderVersion1 PipelineCacheHeaderVersion = C.VK_PIPELINE_CACHE_HEADER_VERSION_ONE
)

func (PipelineCacheHeaderVersion) Register

func (e PipelineCacheHeaderVersion) Register(str string)

func (PipelineCacheHeaderVersion) String

type PipelineCreateFlags

type PipelineCreateFlags int32

func (PipelineCreateFlags) Register

func (f PipelineCreateFlags) Register(str string)

func (PipelineCreateFlags) String

func (f PipelineCreateFlags) String() string

type PipelineStages

type PipelineStages int32

func (PipelineStages) Register

func (f PipelineStages) Register(str string)

func (PipelineStages) String

func (f PipelineStages) String() string

type PipelineStatistics

type PipelineStatistics int32

func (PipelineStatistics) Register

func (f PipelineStatistics) Register(str string)

func (PipelineStatistics) String

func (f PipelineStatistics) String() string

type PolygonMode

type PolygonMode int32

func (PolygonMode) Register

func (e PolygonMode) Register(str string)

func (PolygonMode) String

func (e PolygonMode) String() string

type PrimitiveTopology

type PrimitiveTopology int32

func (PrimitiveTopology) Register

func (e PrimitiveTopology) Register(str string)

func (PrimitiveTopology) String

func (e PrimitiveTopology) String() string

type QueryControlFlags

type QueryControlFlags int32

func (QueryControlFlags) Register

func (f QueryControlFlags) Register(str string)

func (QueryControlFlags) String

func (f QueryControlFlags) String() string

type QueryPipelineStatisticFlags

type QueryPipelineStatisticFlags int32

func (QueryPipelineStatisticFlags) Register

func (f QueryPipelineStatisticFlags) Register(str string)

func (QueryPipelineStatisticFlags) String

type QueryResultFlags

type QueryResultFlags int32

func (QueryResultFlags) Register

func (f QueryResultFlags) Register(str string)

func (QueryResultFlags) String

func (f QueryResultFlags) String() string

type QueryType

type QueryType int32

func (QueryType) Register

func (e QueryType) Register(str string)

func (QueryType) String

func (e QueryType) String() string

type QueueFlags

type QueueFlags int32

func (QueueFlags) Register

func (f QueueFlags) Register(str string)

func (QueueFlags) String

func (f QueueFlags) String() string

type ReallocationFunction

type ReallocationFunction func(userData any, original unsafe.Pointer, size int, allignment int, allocationScope SystemAllocationScope) unsafe.Pointer

type Rect2D

type Rect2D struct {
	Offset Offset2D
	Extent Extent2D
}

type RenderPassCreateFlags

type RenderPassCreateFlags int32

func (RenderPassCreateFlags) Register

func (f RenderPassCreateFlags) Register(str string)

func (RenderPassCreateFlags) String

func (f RenderPassCreateFlags) String() string

type SampleCounts

type SampleCounts int32

func (SampleCounts) Count

func (f SampleCounts) Count() int

func (SampleCounts) RegisterSamples

func (f SampleCounts) RegisterSamples(str string, sampleCount int)

func (SampleCounts) String

func (f SampleCounts) String() string

type SamplerAddressMode

type SamplerAddressMode int32

func (SamplerAddressMode) Register

func (e SamplerAddressMode) Register(str string)

func (SamplerAddressMode) String

func (e SamplerAddressMode) String() string

type SamplerCreateFlags

type SamplerCreateFlags int32

func (SamplerCreateFlags) Register

func (f SamplerCreateFlags) Register(str string)

func (SamplerCreateFlags) String

func (f SamplerCreateFlags) String() string

type ShaderStageCreateFlags

type ShaderStageCreateFlags int32

func (ShaderStageCreateFlags) Register

func (f ShaderStageCreateFlags) Register(str string)

func (ShaderStageCreateFlags) String

func (f ShaderStageCreateFlags) String() string

type ShaderStages

type ShaderStages int32

func (ShaderStages) Register

func (f ShaderStages) Register(str string)

func (ShaderStages) String

func (f ShaderStages) String() string

type SharingMode

type SharingMode int32

func (SharingMode) Register

func (e SharingMode) Register(str string)

func (SharingMode) String

func (e SharingMode) String() string

type SparseImageFormatFlags

type SparseImageFormatFlags int32

func (SparseImageFormatFlags) Register

func (f SparseImageFormatFlags) Register(str string)

func (SparseImageFormatFlags) String

func (f SparseImageFormatFlags) String() string

type SparseMemoryBindFlags

type SparseMemoryBindFlags int32

func (SparseMemoryBindFlags) Register

func (f SparseMemoryBindFlags) Register(str string)

func (SparseMemoryBindFlags) String

func (f SparseMemoryBindFlags) String() string

type StencilFaces

type StencilFaces int32

func (StencilFaces) Register

func (f StencilFaces) Register(str string)

func (StencilFaces) String

func (f StencilFaces) String() string

type StencilOp

type StencilOp int32

func (StencilOp) Register

func (e StencilOp) Register(str string)

func (StencilOp) String

func (e StencilOp) String() string

type SubPassDescriptionFlags

type SubPassDescriptionFlags int32

func (SubPassDescriptionFlags) Register

func (f SubPassDescriptionFlags) Register(str string)

func (SubPassDescriptionFlags) String

func (f SubPassDescriptionFlags) String() string

type SubpassContents

type SubpassContents int32

func (SubpassContents) Register

func (e SubpassContents) Register(str string)

func (SubpassContents) String

func (e SubpassContents) String() string

type SubresourceLayout

type SubresourceLayout struct {
	Offset     int
	Size       int
	RowPitch   int
	ArrayPitch int
	DepthPitch int
}

type SystemAllocationScope

type SystemAllocationScope int32

func (SystemAllocationScope) Register

func (e SystemAllocationScope) Register(str string)

func (SystemAllocationScope) String

func (e SystemAllocationScope) String() string

type Version

type Version uint32

func CreateVersion

func CreateVersion(major, minor, patch uint32) Version

func (Version) Major

func (v Version) Major() uint32

func (Version) Minor

func (v Version) Minor() uint32

func (Version) Patch

func (v Version) Patch() uint32

func (Version) String

func (v Version) String() string

type Viewport

type Viewport struct {
	X        float32
	Y        float32
	Width    float32
	Height   float32
	MinDepth float32
	MaxDepth float32
}

type VkResult

type VkResult int

func (VkResult) Register

func (e VkResult) Register(str string)

func (VkResult) String

func (e VkResult) String() string

func (VkResult) ToError

func (e VkResult) ToError() error

type VkResultError

type VkResultError struct {
	// contains filtered or unexported fields
}

func (*VkResultError) Error

func (err *VkResultError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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