| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909 |
- // Code generated by github.com/cogentcore/webgpu/cmd/enums; DO NOT EDIT.
- package wgpu
- type AdapterType uint32
- const (
- AdapterTypeDiscreteGPU AdapterType = 0x00000000
- AdapterTypeIntegratedGPU AdapterType = 0x00000001
- AdapterTypeCPU AdapterType = 0x00000002
- AdapterTypeUnknown AdapterType = 0x00000003
- )
- func (v AdapterType) String() string {
- switch v {
- case AdapterTypeDiscreteGPU:
- return "discrete-gpu"
- case AdapterTypeIntegratedGPU:
- return "integrated-gpu"
- case AdapterTypeCPU:
- return "cpu"
- case AdapterTypeUnknown:
- return "unknown"
- default:
- return ""
- }
- }
- type AddressMode uint32
- const (
- AddressModeRepeat AddressMode = 0x00000000
- AddressModeMirrorRepeat AddressMode = 0x00000001
- AddressModeClampToEdge AddressMode = 0x00000002
- )
- func (v AddressMode) String() string {
- switch v {
- case AddressModeRepeat:
- return "repeat"
- case AddressModeMirrorRepeat:
- return "mirror-repeat"
- case AddressModeClampToEdge:
- return "clamp-to-edge"
- default:
- return ""
- }
- }
- type BackendType uint32
- const (
- BackendTypeUndefined BackendType = 0x00000000
- BackendTypeNull BackendType = 0x00000001
- BackendTypeWebGPU BackendType = 0x00000002
- BackendTypeD3D11 BackendType = 0x00000003
- BackendTypeD3D12 BackendType = 0x00000004
- BackendTypeMetal BackendType = 0x00000005
- BackendTypeVulkan BackendType = 0x00000006
- BackendTypeOpenGL BackendType = 0x00000007
- BackendTypeOpenGLES BackendType = 0x00000008
- )
- func (v BackendType) String() string {
- switch v {
- case BackendTypeUndefined:
- return "undefined"
- case BackendTypeNull:
- return "null"
- case BackendTypeWebGPU:
- return "web-gpu"
- case BackendTypeD3D11:
- return "d3d11"
- case BackendTypeD3D12:
- return "d3d12"
- case BackendTypeMetal:
- return "metal"
- case BackendTypeVulkan:
- return "vulkan"
- case BackendTypeOpenGL:
- return "open-gl"
- case BackendTypeOpenGLES:
- return "open-gles"
- default:
- return ""
- }
- }
- type BlendFactor uint32
- const (
- BlendFactorZero BlendFactor = 0x00000000
- BlendFactorOne BlendFactor = 0x00000001
- BlendFactorSrc BlendFactor = 0x00000002
- BlendFactorOneMinusSrc BlendFactor = 0x00000003
- BlendFactorSrcAlpha BlendFactor = 0x00000004
- BlendFactorOneMinusSrcAlpha BlendFactor = 0x00000005
- BlendFactorDst BlendFactor = 0x00000006
- BlendFactorOneMinusDst BlendFactor = 0x00000007
- BlendFactorDstAlpha BlendFactor = 0x00000008
- BlendFactorOneMinusDstAlpha BlendFactor = 0x00000009
- BlendFactorSrcAlphaSaturated BlendFactor = 0x0000000A
- BlendFactorConstant BlendFactor = 0x0000000B
- BlendFactorOneMinusConstant BlendFactor = 0x0000000C
- )
- func (v BlendFactor) String() string {
- switch v {
- case BlendFactorZero:
- return "zero"
- case BlendFactorOne:
- return "one"
- case BlendFactorSrc:
- return "src"
- case BlendFactorOneMinusSrc:
- return "one-minus-src"
- case BlendFactorSrcAlpha:
- return "src-alpha"
- case BlendFactorOneMinusSrcAlpha:
- return "one-minus-src-alpha"
- case BlendFactorDst:
- return "dst"
- case BlendFactorOneMinusDst:
- return "one-minus-dst"
- case BlendFactorDstAlpha:
- return "dst-alpha"
- case BlendFactorOneMinusDstAlpha:
- return "one-minus-dst-alpha"
- case BlendFactorSrcAlphaSaturated:
- return "src-alpha-saturated"
- case BlendFactorConstant:
- return "constant"
- case BlendFactorOneMinusConstant:
- return "one-minus-constant"
- default:
- return ""
- }
- }
- type BlendOperation uint32
- const (
- BlendOperationAdd BlendOperation = 0x00000000
- BlendOperationSubtract BlendOperation = 0x00000001
- BlendOperationReverseSubtract BlendOperation = 0x00000002
- BlendOperationMin BlendOperation = 0x00000003
- BlendOperationMax BlendOperation = 0x00000004
- )
- func (v BlendOperation) String() string {
- switch v {
- case BlendOperationAdd:
- return "add"
- case BlendOperationSubtract:
- return "subtract"
- case BlendOperationReverseSubtract:
- return "reverse-subtract"
- case BlendOperationMin:
- return "min"
- case BlendOperationMax:
- return "max"
- default:
- return ""
- }
- }
- type BufferBindingType uint32
- const (
- BufferBindingTypeUndefined BufferBindingType = 0x00000000
- BufferBindingTypeUniform BufferBindingType = 0x00000001
- BufferBindingTypeStorage BufferBindingType = 0x00000002
- BufferBindingTypeReadOnlyStorage BufferBindingType = 0x00000003
- )
- func (v BufferBindingType) String() string {
- switch v {
- case BufferBindingTypeUndefined:
- return "undefined"
- case BufferBindingTypeUniform:
- return "uniform"
- case BufferBindingTypeStorage:
- return "storage"
- case BufferBindingTypeReadOnlyStorage:
- return "read-only-storage"
- default:
- return ""
- }
- }
- type BufferMapAsyncStatus uint32
- const (
- BufferMapAsyncStatusSuccess BufferMapAsyncStatus = 0x00000000
- BufferMapAsyncStatusValidationError BufferMapAsyncStatus = 0x00000001
- BufferMapAsyncStatusUnknown BufferMapAsyncStatus = 0x00000002
- BufferMapAsyncStatusDeviceLost BufferMapAsyncStatus = 0x00000003
- BufferMapAsyncStatusDestroyedBeforeCallback BufferMapAsyncStatus = 0x00000004
- BufferMapAsyncStatusUnmappedBeforeCallback BufferMapAsyncStatus = 0x00000005
- BufferMapAsyncStatusMappingAlreadyPending BufferMapAsyncStatus = 0x00000006
- BufferMapAsyncStatusOffsetOutOfRange BufferMapAsyncStatus = 0x00000007
- BufferMapAsyncStatusSizeOutOfRange BufferMapAsyncStatus = 0x00000008
- )
- func (v BufferMapAsyncStatus) String() string {
- switch v {
- case BufferMapAsyncStatusSuccess:
- return "success"
- case BufferMapAsyncStatusValidationError:
- return "validation-error"
- case BufferMapAsyncStatusUnknown:
- return "unknown"
- case BufferMapAsyncStatusDeviceLost:
- return "device-lost"
- case BufferMapAsyncStatusDestroyedBeforeCallback:
- return "destroyed-before-callback"
- case BufferMapAsyncStatusUnmappedBeforeCallback:
- return "unmapped-before-callback"
- case BufferMapAsyncStatusMappingAlreadyPending:
- return "mapping-already-pending"
- case BufferMapAsyncStatusOffsetOutOfRange:
- return "offset-out-of-range"
- case BufferMapAsyncStatusSizeOutOfRange:
- return "size-out-of-range"
- default:
- return ""
- }
- }
- type BufferMapState uint32
- const (
- BufferMapStateUnmapped BufferMapState = 0x00000000
- BufferMapStatePending BufferMapState = 0x00000001
- BufferMapStateMapped BufferMapState = 0x00000002
- )
- func (v BufferMapState) String() string {
- switch v {
- case BufferMapStateUnmapped:
- return "unmapped"
- case BufferMapStatePending:
- return "pending"
- case BufferMapStateMapped:
- return "mapped"
- default:
- return ""
- }
- }
- type BufferUsage uint32
- const (
- BufferUsageNone BufferUsage = 0x00000000
- BufferUsageMapRead BufferUsage = 0x00000001
- BufferUsageMapWrite BufferUsage = 0x00000002
- BufferUsageCopySrc BufferUsage = 0x00000004
- BufferUsageCopyDst BufferUsage = 0x00000008
- BufferUsageIndex BufferUsage = 0x00000010
- BufferUsageVertex BufferUsage = 0x00000020
- BufferUsageUniform BufferUsage = 0x00000040
- BufferUsageStorage BufferUsage = 0x00000080
- BufferUsageIndirect BufferUsage = 0x00000100
- BufferUsageQueryResolve BufferUsage = 0x00000200
- )
- func (v BufferUsage) String() string {
- switch v {
- case BufferUsageNone:
- return "none"
- case BufferUsageMapRead:
- return "map-read"
- case BufferUsageMapWrite:
- return "map-write"
- case BufferUsageCopySrc:
- return "copy-src"
- case BufferUsageCopyDst:
- return "copy-dst"
- case BufferUsageIndex:
- return "index"
- case BufferUsageVertex:
- return "vertex"
- case BufferUsageUniform:
- return "uniform"
- case BufferUsageStorage:
- return "storage"
- case BufferUsageIndirect:
- return "indirect"
- case BufferUsageQueryResolve:
- return "query-resolve"
- default:
- return ""
- }
- }
- type ColorWriteMask uint32
- const (
- ColorWriteMaskNone ColorWriteMask = 0x00000000
- ColorWriteMaskRed ColorWriteMask = 0x00000001
- ColorWriteMaskGreen ColorWriteMask = 0x00000002
- ColorWriteMaskBlue ColorWriteMask = 0x00000004
- ColorWriteMaskAlpha ColorWriteMask = 0x00000008
- ColorWriteMaskAll ColorWriteMask = 0x0000000F
- )
- func (v ColorWriteMask) String() string {
- switch v {
- case ColorWriteMaskNone:
- return "none"
- case ColorWriteMaskRed:
- return "red"
- case ColorWriteMaskGreen:
- return "green"
- case ColorWriteMaskBlue:
- return "blue"
- case ColorWriteMaskAlpha:
- return "alpha"
- case ColorWriteMaskAll:
- return "all"
- default:
- return ""
- }
- }
- type CompareFunction uint32
- const (
- CompareFunctionUndefined CompareFunction = 0x00000000
- CompareFunctionNever CompareFunction = 0x00000001
- CompareFunctionLess CompareFunction = 0x00000002
- CompareFunctionLessEqual CompareFunction = 0x00000003
- CompareFunctionGreater CompareFunction = 0x00000004
- CompareFunctionGreaterEqual CompareFunction = 0x00000005
- CompareFunctionEqual CompareFunction = 0x00000006
- CompareFunctionNotEqual CompareFunction = 0x00000007
- CompareFunctionAlways CompareFunction = 0x00000008
- )
- func (v CompareFunction) String() string {
- switch v {
- case CompareFunctionUndefined:
- return "undefined"
- case CompareFunctionNever:
- return "never"
- case CompareFunctionLess:
- return "less"
- case CompareFunctionLessEqual:
- return "less-equal"
- case CompareFunctionGreater:
- return "greater"
- case CompareFunctionGreaterEqual:
- return "greater-equal"
- case CompareFunctionEqual:
- return "equal"
- case CompareFunctionNotEqual:
- return "not-equal"
- case CompareFunctionAlways:
- return "always"
- default:
- return ""
- }
- }
- type CompilationInfoRequestStatus uint32
- const (
- CompilationInfoRequestStatusSuccess CompilationInfoRequestStatus = 0x00000000
- CompilationInfoRequestStatusError CompilationInfoRequestStatus = 0x00000001
- CompilationInfoRequestStatusDeviceLost CompilationInfoRequestStatus = 0x00000002
- CompilationInfoRequestStatusUnknown CompilationInfoRequestStatus = 0x00000003
- )
- func (v CompilationInfoRequestStatus) String() string {
- switch v {
- case CompilationInfoRequestStatusSuccess:
- return "success"
- case CompilationInfoRequestStatusError:
- return "error"
- case CompilationInfoRequestStatusDeviceLost:
- return "device-lost"
- case CompilationInfoRequestStatusUnknown:
- return "unknown"
- default:
- return ""
- }
- }
- type CompilationMessageType uint32
- const (
- CompilationMessageTypeError CompilationMessageType = 0x00000000
- CompilationMessageTypeWarning CompilationMessageType = 0x00000001
- CompilationMessageTypeInfo CompilationMessageType = 0x00000002
- )
- func (v CompilationMessageType) String() string {
- switch v {
- case CompilationMessageTypeError:
- return "error"
- case CompilationMessageTypeWarning:
- return "warning"
- case CompilationMessageTypeInfo:
- return "info"
- default:
- return ""
- }
- }
- type CompositeAlphaMode uint32
- const (
- CompositeAlphaModeAuto CompositeAlphaMode = 0x00000000
- CompositeAlphaModeOpaque CompositeAlphaMode = 0x00000001
- CompositeAlphaModePremultiplied CompositeAlphaMode = 0x00000002
- CompositeAlphaModeUnpremultiplied CompositeAlphaMode = 0x00000003
- CompositeAlphaModeInherit CompositeAlphaMode = 0x00000004
- )
- func (v CompositeAlphaMode) String() string {
- switch v {
- case CompositeAlphaModeAuto:
- return "auto"
- case CompositeAlphaModeOpaque:
- return "opaque"
- case CompositeAlphaModePremultiplied:
- return "premultiplied"
- case CompositeAlphaModeUnpremultiplied:
- return "unpremultiplied"
- case CompositeAlphaModeInherit:
- return "inherit"
- default:
- return ""
- }
- }
- type CreatePipelineAsyncStatus uint32
- const (
- CreatePipelineAsyncStatusSuccess CreatePipelineAsyncStatus = 0x00000000
- CreatePipelineAsyncStatusValidationError CreatePipelineAsyncStatus = 0x00000001
- CreatePipelineAsyncStatusInternalError CreatePipelineAsyncStatus = 0x00000002
- CreatePipelineAsyncStatusDeviceLost CreatePipelineAsyncStatus = 0x00000003
- CreatePipelineAsyncStatusDeviceDestroyed CreatePipelineAsyncStatus = 0x00000004
- CreatePipelineAsyncStatusUnknown CreatePipelineAsyncStatus = 0x00000005
- )
- func (v CreatePipelineAsyncStatus) String() string {
- switch v {
- case CreatePipelineAsyncStatusSuccess:
- return "success"
- case CreatePipelineAsyncStatusValidationError:
- return "validation-error"
- case CreatePipelineAsyncStatusInternalError:
- return "internal-error"
- case CreatePipelineAsyncStatusDeviceLost:
- return "device-lost"
- case CreatePipelineAsyncStatusDeviceDestroyed:
- return "device-destroyed"
- case CreatePipelineAsyncStatusUnknown:
- return "unknown"
- default:
- return ""
- }
- }
- type CullMode uint32
- const (
- CullModeNone CullMode = 0x00000000
- CullModeFront CullMode = 0x00000001
- CullModeBack CullMode = 0x00000002
- )
- func (v CullMode) String() string {
- switch v {
- case CullModeNone:
- return "none"
- case CullModeFront:
- return "front"
- case CullModeBack:
- return "back"
- default:
- return ""
- }
- }
- type DeviceLostReason uint32
- const (
- DeviceLostReasonUnknown DeviceLostReason = 0x00000001
- DeviceLostReasonDestroyed DeviceLostReason = 0x00000002
- )
- func (v DeviceLostReason) String() string {
- switch v {
- case DeviceLostReasonUnknown:
- return "unknown"
- case DeviceLostReasonDestroyed:
- return "destroyed"
- default:
- return ""
- }
- }
- type Dx12Compiler uint32
- const (
- Dx12CompilerUndefined Dx12Compiler = 0x00000000
- Dx12CompilerFxc Dx12Compiler = 0x00000001
- Dx12CompilerDxc Dx12Compiler = 0x00000002
- )
- func (v Dx12Compiler) String() string {
- switch v {
- case Dx12CompilerUndefined:
- return "undefined"
- case Dx12CompilerFxc:
- return "fxc"
- case Dx12CompilerDxc:
- return "dxc"
- default:
- return ""
- }
- }
- type ErrorFilter uint32
- const (
- ErrorFilterValidation ErrorFilter = 0x00000000
- ErrorFilterOutOfMemory ErrorFilter = 0x00000001
- ErrorFilterInternal ErrorFilter = 0x00000002
- )
- func (v ErrorFilter) String() string {
- switch v {
- case ErrorFilterValidation:
- return "validation"
- case ErrorFilterOutOfMemory:
- return "out-of-memory"
- case ErrorFilterInternal:
- return "internal"
- default:
- return ""
- }
- }
- type ErrorType uint32
- const (
- ErrorTypeNoError ErrorType = 0x00000000
- ErrorTypeValidation ErrorType = 0x00000001
- ErrorTypeOutOfMemory ErrorType = 0x00000002
- ErrorTypeInternal ErrorType = 0x00000003
- ErrorTypeUnknown ErrorType = 0x00000004
- ErrorTypeDeviceLost ErrorType = 0x00000005
- )
- func (v ErrorType) String() string {
- switch v {
- case ErrorTypeNoError:
- return "no-error"
- case ErrorTypeValidation:
- return "validation"
- case ErrorTypeOutOfMemory:
- return "out-of-memory"
- case ErrorTypeInternal:
- return "internal"
- case ErrorTypeUnknown:
- return "unknown"
- case ErrorTypeDeviceLost:
- return "device-lost"
- default:
- return "unknown"
- }
- }
- type FeatureName uint32
- const (
- FeatureNameUndefined FeatureName = 0x00000000
- FeatureNameDepthClipControl FeatureName = 0x00000001
- FeatureNameDepth32FloatStencil8 FeatureName = 0x00000002
- FeatureNameTimestampQuery FeatureName = 0x00000003
- FeatureNameTextureCompressionBC FeatureName = 0x00000004
- FeatureNameTextureCompressionETC2 FeatureName = 0x00000005
- FeatureNameTextureCompressionASTC FeatureName = 0x00000006
- FeatureNameIndirectFirstInstance FeatureName = 0x00000007
- FeatureNameShaderF16 FeatureName = 0x00000008
- FeatureNameRG11B10UfloatRenderable FeatureName = 0x00000009
- FeatureNameBGRA8UnormStorage FeatureName = 0x0000000A
- FeatureNameFloat32Filterable FeatureName = 0x0000000B
- NativeFeaturePushConstants FeatureName = 0x00030001
- NativeFeatureTextureAdapterSpecificFormatFeatures FeatureName = 0x00030002
- NativeFeatureMultiDrawIndirect FeatureName = 0x00030003
- NativeFeatureMultiDrawIndirectCount FeatureName = 0x00030004
- NativeFeatureVertexWritableStorage FeatureName = 0x00030005
- NativeFeatureTextureBindingArray FeatureName = 0x00030006
- NativeFeatureSampledTextureAndStorageBufferArrayNonUniformIndexing FeatureName = 0x00030007
- NativeFeaturePipelineStatisticsQuery FeatureName = 0x00030008
- NativeFeatureStorageResourceBindingArray FeatureName = 0x00030009
- NativeFeaturePartiallyBoundBindingArray FeatureName = 0x0003000A
- NativeFeatureTextureFormat16bitNorm FeatureName = 0x0003000B
- NativeFeatureTextureCompressionAstcHdr FeatureName = 0x0003000C
- NativeFeatureMappablePrimaryBuffers FeatureName = 0x0003000E
- NativeFeatureBufferBindingArray FeatureName = 0x0003000F
- NativeFeatureUniformBufferAndStorageTextureArrayNonUniformIndexing FeatureName = 0x00030010
- NativeFeatureVertexAttribute64bit FeatureName = 0x00030019
- NativeFeatureShaderUnusedVertexOutput FeatureName = 0x0003001A
- NativeFeatureTextureFormatNv12 FeatureName = 0x0003001B
- NativeFeatureRayTracingAccelerationStructure FeatureName = 0x0003001C
- NativeFeatureRayQuery FeatureName = 0x0003001D
- NativeFeatureShaderF64 FeatureName = 0x0003001E
- NativeFeatureShaderI16 FeatureName = 0x0003001F
- NativeFeatureShaderPrimitiveIndex FeatureName = 0x00030020
- NativeFeatureShaderEarlyDepthTest FeatureName = 0x00030021
- )
- func (v FeatureName) String() string {
- switch v {
- case FeatureNameUndefined:
- return "undefined"
- case FeatureNameDepthClipControl:
- return "depth-clip-control"
- case FeatureNameDepth32FloatStencil8:
- return "depth32float-stencil8"
- case FeatureNameTimestampQuery:
- return "timestamp-query"
- case FeatureNameTextureCompressionBC:
- return "texture-compression-bc"
- case FeatureNameTextureCompressionETC2:
- return "texture-compression-etc2"
- case FeatureNameTextureCompressionASTC:
- return "texture-compression-astc"
- case FeatureNameIndirectFirstInstance:
- return "indirect-first-instance"
- case FeatureNameShaderF16:
- return "shader-f16"
- case FeatureNameRG11B10UfloatRenderable:
- return "rg11b10ufloat-renderable"
- case FeatureNameBGRA8UnormStorage:
- return "bgra8unorm-storage"
- case FeatureNameFloat32Filterable:
- return "float32filterable"
- case NativeFeaturePushConstants:
- return "native-feature-push-constants"
- case NativeFeatureTextureAdapterSpecificFormatFeatures:
- return "native-feature-texture-adapter-specific-format-features"
- case NativeFeatureMultiDrawIndirect:
- return "native-feature-multi-draw-indirect"
- case NativeFeatureMultiDrawIndirectCount:
- return "native-feature-multi-draw-indirect-count"
- case NativeFeatureVertexWritableStorage:
- return "native-feature-vertex-writable-storage"
- case NativeFeatureTextureBindingArray:
- return "native-feature-texture-binding-array"
- case NativeFeatureSampledTextureAndStorageBufferArrayNonUniformIndexing:
- return "native-feature-sampled-texture-and-storage-buffer-array-non-uniform-indexing"
- case NativeFeaturePipelineStatisticsQuery:
- return "native-feature-pipeline-statistics-query"
- case NativeFeatureStorageResourceBindingArray:
- return "native-feature-storage-resource-binding-array"
- case NativeFeaturePartiallyBoundBindingArray:
- return "native-feature-partially-bound-binding-array"
- case NativeFeatureTextureFormat16bitNorm:
- return "native-feature-texture-format16bit-norm"
- case NativeFeatureTextureCompressionAstcHdr:
- return "native-feature-texture-compression-astc-hdr"
- case NativeFeatureMappablePrimaryBuffers:
- return "native-feature-mappable-primary-buffers"
- case NativeFeatureBufferBindingArray:
- return "native-feature-buffer-binding-array"
- case NativeFeatureUniformBufferAndStorageTextureArrayNonUniformIndexing:
- return "native-feature-uniform-buffer-and-storage-texture-array-non-uniform-indexing"
- case NativeFeatureVertexAttribute64bit:
- return "native-feature-vertex-attribute64bit"
- case NativeFeatureShaderUnusedVertexOutput:
- return "native-feature-shader-unused-vertex-output"
- case NativeFeatureTextureFormatNv12:
- return "native-feature-texture-format-nv12"
- case NativeFeatureRayTracingAccelerationStructure:
- return "native-feature-ray-tracing-acceleration-structure"
- case NativeFeatureRayQuery:
- return "native-feature-ray-query"
- case NativeFeatureShaderF64:
- return "native-feature-shader-f64"
- case NativeFeatureShaderI16:
- return "native-feature-shader-i16"
- case NativeFeatureShaderPrimitiveIndex:
- return "native-feature-shader-primitive-index"
- case NativeFeatureShaderEarlyDepthTest:
- return "native-feature-shader-early-depth-test"
- default:
- return ""
- }
- }
- type FilterMode uint32
- const (
- FilterModeNearest FilterMode = 0x00000000
- FilterModeLinear FilterMode = 0x00000001
- )
- func (v FilterMode) String() string {
- switch v {
- case FilterModeNearest:
- return "nearest"
- case FilterModeLinear:
- return "linear"
- default:
- return ""
- }
- }
- type FrontFace uint32
- const (
- FrontFaceCCW FrontFace = 0x00000000
- FrontFaceCW FrontFace = 0x00000001
- )
- func (v FrontFace) String() string {
- switch v {
- case FrontFaceCCW:
- return "ccw"
- case FrontFaceCW:
- return "cw"
- default:
- return ""
- }
- }
- type Gles3MinorVersion uint32
- const (
- Gles3MinorVersionAutomatic Gles3MinorVersion = 0x00000000
- Gles3MinorVersionVersion0 Gles3MinorVersion = 0x00000001
- Gles3MinorVersionVersion1 Gles3MinorVersion = 0x00000002
- Gles3MinorVersionVersion2 Gles3MinorVersion = 0x00000003
- )
- func (v Gles3MinorVersion) String() string {
- switch v {
- case Gles3MinorVersionAutomatic:
- return "automatic"
- case Gles3MinorVersionVersion0:
- return "version0"
- case Gles3MinorVersionVersion1:
- return "version1"
- case Gles3MinorVersionVersion2:
- return "version2"
- default:
- return ""
- }
- }
- type IndexFormat uint32
- const (
- IndexFormatUndefined IndexFormat = 0x00000000
- IndexFormatUint16 IndexFormat = 0x00000001
- IndexFormatUint32 IndexFormat = 0x00000002
- )
- func (v IndexFormat) String() string {
- switch v {
- case IndexFormatUndefined:
- return "undefined"
- case IndexFormatUint16:
- return "uint16"
- case IndexFormatUint32:
- return "uint32"
- default:
- return ""
- }
- }
- type InstanceBackend uint32
- const (
- InstanceBackendAll InstanceBackend = 0x00000000
- InstanceBackendVulkan InstanceBackend = 0x00000001
- InstanceBackendGL InstanceBackend = 0x00000002
- InstanceBackendMetal InstanceBackend = 0x00000004
- InstanceBackendDX12 InstanceBackend = 0x00000008
- InstanceBackendDX11 InstanceBackend = 0x00000010
- InstanceBackendSecondary InstanceBackend = 0x00000012
- InstanceBackendBrowserWebGPU InstanceBackend = 0x00000020
- InstanceBackendPrimary InstanceBackend = 0x0000002D
- )
- func (v InstanceBackend) String() string {
- switch v {
- case InstanceBackendAll:
- return "all"
- case InstanceBackendVulkan:
- return "vulkan"
- case InstanceBackendGL:
- return "gl"
- case InstanceBackendMetal:
- return "metal"
- case InstanceBackendDX12:
- return "dx12"
- case InstanceBackendDX11:
- return "dx11"
- case InstanceBackendSecondary:
- return "secondary"
- case InstanceBackendBrowserWebGPU:
- return "browser-web-gpu"
- case InstanceBackendPrimary:
- return "primary"
- default:
- return ""
- }
- }
- type InstanceFlag uint32
- const (
- InstanceFlagDefault InstanceFlag = 0x00000000
- InstanceFlagDebug InstanceFlag = 0x00000001
- InstanceFlagValidation InstanceFlag = 0x00000002
- InstanceFlagDiscardHalLabels InstanceFlag = 0x00000004
- )
- func (v InstanceFlag) String() string {
- switch v {
- case InstanceFlagDefault:
- return "default"
- case InstanceFlagDebug:
- return "debug"
- case InstanceFlagValidation:
- return "validation"
- case InstanceFlagDiscardHalLabels:
- return "discard-hal-labels"
- default:
- return ""
- }
- }
- type LoadOp uint32
- const (
- LoadOpUndefined LoadOp = 0x00000000
- LoadOpClear LoadOp = 0x00000001
- LoadOpLoad LoadOp = 0x00000002
- )
- func (v LoadOp) String() string {
- switch v {
- case LoadOpUndefined:
- return "undefined"
- case LoadOpClear:
- return "clear"
- case LoadOpLoad:
- return "load"
- default:
- return ""
- }
- }
- type LogLevel uint32
- const (
- LogLevelOff LogLevel = 0x00000000
- LogLevelError LogLevel = 0x00000001
- LogLevelWarn LogLevel = 0x00000002
- LogLevelInfo LogLevel = 0x00000003
- LogLevelDebug LogLevel = 0x00000004
- LogLevelTrace LogLevel = 0x00000005
- )
- func (v LogLevel) String() string {
- switch v {
- case LogLevelOff:
- return "off"
- case LogLevelError:
- return "error"
- case LogLevelWarn:
- return "warn"
- case LogLevelInfo:
- return "info"
- case LogLevelDebug:
- return "debug"
- case LogLevelTrace:
- return "trace"
- default:
- return ""
- }
- }
- type MapMode uint32
- const (
- MapModeNone MapMode = 0x00000000
- MapModeRead MapMode = 0x00000001
- MapModeWrite MapMode = 0x00000002
- )
- func (v MapMode) String() string {
- switch v {
- case MapModeNone:
- return "none"
- case MapModeRead:
- return "read"
- case MapModeWrite:
- return "write"
- default:
- return ""
- }
- }
- type MipmapFilterMode uint32
- const (
- MipmapFilterModeNearest MipmapFilterMode = 0x00000000
- MipmapFilterModeLinear MipmapFilterMode = 0x00000001
- )
- func (v MipmapFilterMode) String() string {
- switch v {
- case MipmapFilterModeNearest:
- return "nearest"
- case MipmapFilterModeLinear:
- return "linear"
- default:
- return ""
- }
- }
- type NativeQueryType uint32
- const NativeQueryTypePipelineStatistics NativeQueryType = 0x00030000
- func (v NativeQueryType) String() string {
- switch v {
- case NativeQueryTypePipelineStatistics:
- return "pipeline-statistics"
- default:
- return ""
- }
- }
- type NativeTextureFormat uint32
- const (
- NativeTextureFormatR16Unorm NativeTextureFormat = 0x00030001
- NativeTextureFormatR16Snorm NativeTextureFormat = 0x00030002
- NativeTextureFormatRg16Unorm NativeTextureFormat = 0x00030003
- NativeTextureFormatRg16Snorm NativeTextureFormat = 0x00030004
- NativeTextureFormatRgba16Unorm NativeTextureFormat = 0x00030005
- NativeTextureFormatRgba16Snorm NativeTextureFormat = 0x00030006
- NativeTextureFormatNV12 NativeTextureFormat = 0x00030007
- )
- func (v NativeTextureFormat) String() string {
- switch v {
- case NativeTextureFormatR16Unorm:
- return "r16unorm"
- case NativeTextureFormatR16Snorm:
- return "r16snorm"
- case NativeTextureFormatRg16Unorm:
- return "rg16unorm"
- case NativeTextureFormatRg16Snorm:
- return "rg16snorm"
- case NativeTextureFormatRgba16Unorm:
- return "rgba16unorm"
- case NativeTextureFormatRgba16Snorm:
- return "rgba16snorm"
- case NativeTextureFormatNV12:
- return "nv12"
- default:
- return ""
- }
- }
- type PipelineStatisticName uint32
- const (
- PipelineStatisticNameVertexShaderInvocations PipelineStatisticName = 0x00000000
- PipelineStatisticNameClipperInvocations PipelineStatisticName = 0x00000001
- PipelineStatisticNameClipperPrimitivesOut PipelineStatisticName = 0x00000002
- PipelineStatisticNameFragmentShaderInvocations PipelineStatisticName = 0x00000003
- PipelineStatisticNameComputeShaderInvocations PipelineStatisticName = 0x00000004
- )
- func (v PipelineStatisticName) String() string {
- switch v {
- case PipelineStatisticNameVertexShaderInvocations:
- return "vertex-shader-invocations"
- case PipelineStatisticNameClipperInvocations:
- return "clipper-invocations"
- case PipelineStatisticNameClipperPrimitivesOut:
- return "clipper-primitives-out"
- case PipelineStatisticNameFragmentShaderInvocations:
- return "fragment-shader-invocations"
- case PipelineStatisticNameComputeShaderInvocations:
- return "compute-shader-invocations"
- default:
- return ""
- }
- }
- type PowerPreference uint32
- const (
- PowerPreferenceUndefined PowerPreference = 0x00000000
- PowerPreferenceLowPower PowerPreference = 0x00000001
- PowerPreferenceHighPerformance PowerPreference = 0x00000002
- )
- func (v PowerPreference) String() string {
- switch v {
- case PowerPreferenceUndefined:
- return "undefined"
- case PowerPreferenceLowPower:
- return "low-power"
- case PowerPreferenceHighPerformance:
- return "high-performance"
- default:
- return ""
- }
- }
- type PresentMode uint32
- const (
- PresentModeFifo PresentMode = 0x00000000
- PresentModeFifoRelaxed PresentMode = 0x00000001
- PresentModeImmediate PresentMode = 0x00000002
- PresentModeMailbox PresentMode = 0x00000003
- )
- func (v PresentMode) String() string {
- switch v {
- case PresentModeFifo:
- return "fifo"
- case PresentModeFifoRelaxed:
- return "fifo-relaxed"
- case PresentModeImmediate:
- return "immediate"
- case PresentModeMailbox:
- return "mailbox"
- default:
- return ""
- }
- }
- type PrimitiveTopology uint32
- const (
- PrimitiveTopologyPointList PrimitiveTopology = 0x00000000
- PrimitiveTopologyLineList PrimitiveTopology = 0x00000001
- PrimitiveTopologyLineStrip PrimitiveTopology = 0x00000002
- PrimitiveTopologyTriangleList PrimitiveTopology = 0x00000003
- PrimitiveTopologyTriangleStrip PrimitiveTopology = 0x00000004
- )
- func (v PrimitiveTopology) String() string {
- switch v {
- case PrimitiveTopologyPointList:
- return "point-list"
- case PrimitiveTopologyLineList:
- return "line-list"
- case PrimitiveTopologyLineStrip:
- return "line-strip"
- case PrimitiveTopologyTriangleList:
- return "triangle-list"
- case PrimitiveTopologyTriangleStrip:
- return "triangle-strip"
- default:
- return ""
- }
- }
- type QueryType uint32
- const (
- QueryTypeOcclusion QueryType = 0x00000000
- QueryTypeTimestamp QueryType = 0x00000001
- )
- func (v QueryType) String() string {
- switch v {
- case QueryTypeOcclusion:
- return "occlusion"
- case QueryTypeTimestamp:
- return "timestamp"
- default:
- return ""
- }
- }
- type QueueWorkDoneStatus uint32
- const (
- QueueWorkDoneStatusSuccess QueueWorkDoneStatus = 0x00000000
- QueueWorkDoneStatusError QueueWorkDoneStatus = 0x00000001
- QueueWorkDoneStatusUnknown QueueWorkDoneStatus = 0x00000002
- QueueWorkDoneStatusDeviceLost QueueWorkDoneStatus = 0x00000003
- )
- func (v QueueWorkDoneStatus) String() string {
- switch v {
- case QueueWorkDoneStatusSuccess:
- return "success"
- case QueueWorkDoneStatusError:
- return "error"
- case QueueWorkDoneStatusUnknown:
- return "unknown"
- case QueueWorkDoneStatusDeviceLost:
- return "device-lost"
- default:
- return ""
- }
- }
- type RequestAdapterStatus uint32
- const (
- RequestAdapterStatusSuccess RequestAdapterStatus = 0x00000000
- RequestAdapterStatusUnavailable RequestAdapterStatus = 0x00000001
- RequestAdapterStatusError RequestAdapterStatus = 0x00000002
- RequestAdapterStatusUnknown RequestAdapterStatus = 0x00000003
- )
- func (v RequestAdapterStatus) String() string {
- switch v {
- case RequestAdapterStatusSuccess:
- return "success"
- case RequestAdapterStatusUnavailable:
- return "unavailable"
- case RequestAdapterStatusError:
- return "error"
- case RequestAdapterStatusUnknown:
- return "unknown"
- default:
- return ""
- }
- }
- type RequestDeviceStatus uint32
- const (
- RequestDeviceStatusSuccess RequestDeviceStatus = 0x00000000
- RequestDeviceStatusError RequestDeviceStatus = 0x00000001
- RequestDeviceStatusUnknown RequestDeviceStatus = 0x00000002
- )
- func (v RequestDeviceStatus) String() string {
- switch v {
- case RequestDeviceStatusSuccess:
- return "success"
- case RequestDeviceStatusError:
- return "error"
- case RequestDeviceStatusUnknown:
- return "unknown"
- default:
- return ""
- }
- }
- type SamplerBindingType uint32
- const (
- SamplerBindingTypeUndefined SamplerBindingType = 0x00000000
- SamplerBindingTypeFiltering SamplerBindingType = 0x00000001
- SamplerBindingTypeNonFiltering SamplerBindingType = 0x00000002
- SamplerBindingTypeComparison SamplerBindingType = 0x00000003
- )
- func (v SamplerBindingType) String() string {
- switch v {
- case SamplerBindingTypeUndefined:
- return "undefined"
- case SamplerBindingTypeFiltering:
- return "filtering"
- case SamplerBindingTypeNonFiltering:
- return "non-filtering"
- case SamplerBindingTypeComparison:
- return "comparison"
- default:
- return ""
- }
- }
- type ShaderStage uint32
- const (
- ShaderStageNone ShaderStage = 0x00000000
- ShaderStageVertex ShaderStage = 0x00000001
- ShaderStageFragment ShaderStage = 0x00000002
- ShaderStageCompute ShaderStage = 0x00000004
- )
- func (v ShaderStage) String() string {
- switch v {
- case ShaderStageNone:
- return "none"
- case ShaderStageVertex:
- return "vertex"
- case ShaderStageFragment:
- return "fragment"
- case ShaderStageCompute:
- return "compute"
- default:
- return ""
- }
- }
- type StencilOperation uint32
- const (
- StencilOperationKeep StencilOperation = 0x00000000
- StencilOperationZero StencilOperation = 0x00000001
- StencilOperationReplace StencilOperation = 0x00000002
- StencilOperationInvert StencilOperation = 0x00000003
- StencilOperationIncrementClamp StencilOperation = 0x00000004
- StencilOperationDecrementClamp StencilOperation = 0x00000005
- StencilOperationIncrementWrap StencilOperation = 0x00000006
- StencilOperationDecrementWrap StencilOperation = 0x00000007
- )
- func (v StencilOperation) String() string {
- switch v {
- case StencilOperationKeep:
- return "keep"
- case StencilOperationZero:
- return "zero"
- case StencilOperationReplace:
- return "replace"
- case StencilOperationInvert:
- return "invert"
- case StencilOperationIncrementClamp:
- return "increment-clamp"
- case StencilOperationDecrementClamp:
- return "decrement-clamp"
- case StencilOperationIncrementWrap:
- return "increment-wrap"
- case StencilOperationDecrementWrap:
- return "decrement-wrap"
- default:
- return ""
- }
- }
- type StorageTextureAccess uint32
- const (
- StorageTextureAccessUndefined StorageTextureAccess = 0x00000000
- StorageTextureAccessWriteOnly StorageTextureAccess = 0x00000001
- StorageTextureAccessReadOnly StorageTextureAccess = 0x00000002
- StorageTextureAccessReadWrite StorageTextureAccess = 0x00000003
- )
- func (v StorageTextureAccess) String() string {
- switch v {
- case StorageTextureAccessUndefined:
- return "undefined"
- case StorageTextureAccessWriteOnly:
- return "write-only"
- case StorageTextureAccessReadOnly:
- return "read-only"
- case StorageTextureAccessReadWrite:
- return "read-write"
- default:
- return ""
- }
- }
- type StoreOp uint32
- const (
- StoreOpUndefined StoreOp = 0x00000000
- StoreOpStore StoreOp = 0x00000001
- StoreOpDiscard StoreOp = 0x00000002
- )
- func (v StoreOp) String() string {
- switch v {
- case StoreOpUndefined:
- return "undefined"
- case StoreOpStore:
- return "store"
- case StoreOpDiscard:
- return "discard"
- default:
- return ""
- }
- }
- type SurfaceGetCurrentTextureStatus uint32
- const (
- SurfaceGetCurrentTextureStatusSuccess SurfaceGetCurrentTextureStatus = 0x00000000
- SurfaceGetCurrentTextureStatusTimeout SurfaceGetCurrentTextureStatus = 0x00000001
- SurfaceGetCurrentTextureStatusOutdated SurfaceGetCurrentTextureStatus = 0x00000002
- SurfaceGetCurrentTextureStatusLost SurfaceGetCurrentTextureStatus = 0x00000003
- SurfaceGetCurrentTextureStatusOutOfMemory SurfaceGetCurrentTextureStatus = 0x00000004
- SurfaceGetCurrentTextureStatusDeviceLost SurfaceGetCurrentTextureStatus = 0x00000005
- )
- func (v SurfaceGetCurrentTextureStatus) String() string {
- switch v {
- case SurfaceGetCurrentTextureStatusSuccess:
- return "success"
- case SurfaceGetCurrentTextureStatusTimeout:
- return "timeout"
- case SurfaceGetCurrentTextureStatusOutdated:
- return "outdated"
- case SurfaceGetCurrentTextureStatusLost:
- return "lost"
- case SurfaceGetCurrentTextureStatusOutOfMemory:
- return "out-of-memory"
- case SurfaceGetCurrentTextureStatusDeviceLost:
- return "device-lost"
- default:
- return ""
- }
- }
- type TextureAspect uint32
- const (
- TextureAspectAll TextureAspect = 0x00000000
- TextureAspectStencilOnly TextureAspect = 0x00000001
- TextureAspectDepthOnly TextureAspect = 0x00000002
- )
- func (v TextureAspect) String() string {
- switch v {
- case TextureAspectAll:
- return "all"
- case TextureAspectStencilOnly:
- return "stencil-only"
- case TextureAspectDepthOnly:
- return "depth-only"
- default:
- return ""
- }
- }
- type TextureDimension uint32
- const (
- TextureDimension1D TextureDimension = 0x00000000
- TextureDimension2D TextureDimension = 0x00000001
- TextureDimension3D TextureDimension = 0x00000002
- )
- func (v TextureDimension) String() string {
- switch v {
- case TextureDimension1D:
- return "1d"
- case TextureDimension2D:
- return "2d"
- case TextureDimension3D:
- return "3d"
- default:
- return ""
- }
- }
- type TextureFormat uint32
- const (
- TextureFormatUndefined TextureFormat = 0x00000000
- TextureFormatR8Unorm TextureFormat = 0x00000001
- TextureFormatR8Snorm TextureFormat = 0x00000002
- TextureFormatR8Uint TextureFormat = 0x00000003
- TextureFormatR8Sint TextureFormat = 0x00000004
- TextureFormatR16Uint TextureFormat = 0x00000005
- TextureFormatR16Sint TextureFormat = 0x00000006
- TextureFormatR16Float TextureFormat = 0x00000007
- TextureFormatRG8Unorm TextureFormat = 0x00000008
- TextureFormatRG8Snorm TextureFormat = 0x00000009
- TextureFormatRG8Uint TextureFormat = 0x0000000A
- TextureFormatRG8Sint TextureFormat = 0x0000000B
- TextureFormatR32Float TextureFormat = 0x0000000C
- TextureFormatR32Uint TextureFormat = 0x0000000D
- TextureFormatR32Sint TextureFormat = 0x0000000E
- TextureFormatRG16Uint TextureFormat = 0x0000000F
- TextureFormatRG16Sint TextureFormat = 0x00000010
- TextureFormatRG16Float TextureFormat = 0x00000011
- TextureFormatRGBA8Unorm TextureFormat = 0x00000012
- TextureFormatRGBA8UnormSrgb TextureFormat = 0x00000013
- TextureFormatRGBA8Snorm TextureFormat = 0x00000014
- TextureFormatRGBA8Uint TextureFormat = 0x00000015
- TextureFormatRGBA8Sint TextureFormat = 0x00000016
- TextureFormatBGRA8Unorm TextureFormat = 0x00000017
- TextureFormatBGRA8UnormSrgb TextureFormat = 0x00000018
- TextureFormatRGB10A2Uint TextureFormat = 0x00000019
- TextureFormatRGB10A2Unorm TextureFormat = 0x0000001A
- TextureFormatRG11B10Ufloat TextureFormat = 0x0000001B
- TextureFormatRGB9E5Ufloat TextureFormat = 0x0000001C
- TextureFormatRG32Float TextureFormat = 0x0000001D
- TextureFormatRG32Uint TextureFormat = 0x0000001E
- TextureFormatRG32Sint TextureFormat = 0x0000001F
- TextureFormatRGBA16Uint TextureFormat = 0x00000020
- TextureFormatRGBA16Sint TextureFormat = 0x00000021
- TextureFormatRGBA16Float TextureFormat = 0x00000022
- TextureFormatRGBA32Float TextureFormat = 0x00000023
- TextureFormatRGBA32Uint TextureFormat = 0x00000024
- TextureFormatRGBA32Sint TextureFormat = 0x00000025
- TextureFormatStencil8 TextureFormat = 0x00000026
- TextureFormatDepth16Unorm TextureFormat = 0x00000027
- TextureFormatDepth24Plus TextureFormat = 0x00000028
- TextureFormatDepth24PlusStencil8 TextureFormat = 0x00000029
- TextureFormatDepth32Float TextureFormat = 0x0000002A
- TextureFormatDepth32FloatStencil8 TextureFormat = 0x0000002B
- TextureFormatBC1RGBAUnorm TextureFormat = 0x0000002C
- TextureFormatBC1RGBAUnormSrgb TextureFormat = 0x0000002D
- TextureFormatBC2RGBAUnorm TextureFormat = 0x0000002E
- TextureFormatBC2RGBAUnormSrgb TextureFormat = 0x0000002F
- TextureFormatBC3RGBAUnorm TextureFormat = 0x00000030
- TextureFormatBC3RGBAUnormSrgb TextureFormat = 0x00000031
- TextureFormatBC4RUnorm TextureFormat = 0x00000032
- TextureFormatBC4RSnorm TextureFormat = 0x00000033
- TextureFormatBC5RGUnorm TextureFormat = 0x00000034
- TextureFormatBC5RGSnorm TextureFormat = 0x00000035
- TextureFormatBC6HRGBUfloat TextureFormat = 0x00000036
- TextureFormatBC6HRGBFloat TextureFormat = 0x00000037
- TextureFormatBC7RGBAUnorm TextureFormat = 0x00000038
- TextureFormatBC7RGBAUnormSrgb TextureFormat = 0x00000039
- TextureFormatETC2RGB8Unorm TextureFormat = 0x0000003A
- TextureFormatETC2RGB8UnormSrgb TextureFormat = 0x0000003B
- TextureFormatETC2RGB8A1Unorm TextureFormat = 0x0000003C
- TextureFormatETC2RGB8A1UnormSrgb TextureFormat = 0x0000003D
- TextureFormatETC2RGBA8Unorm TextureFormat = 0x0000003E
- TextureFormatETC2RGBA8UnormSrgb TextureFormat = 0x0000003F
- TextureFormatEACR11Unorm TextureFormat = 0x00000040
- TextureFormatEACR11Snorm TextureFormat = 0x00000041
- TextureFormatEACRG11Unorm TextureFormat = 0x00000042
- TextureFormatEACRG11Snorm TextureFormat = 0x00000043
- TextureFormatASTC4x4Unorm TextureFormat = 0x00000044
- TextureFormatASTC4x4UnormSrgb TextureFormat = 0x00000045
- TextureFormatASTC5x4Unorm TextureFormat = 0x00000046
- TextureFormatASTC5x4UnormSrgb TextureFormat = 0x00000047
- TextureFormatASTC5x5Unorm TextureFormat = 0x00000048
- TextureFormatASTC5x5UnormSrgb TextureFormat = 0x00000049
- TextureFormatASTC6x5Unorm TextureFormat = 0x0000004A
- TextureFormatASTC6x5UnormSrgb TextureFormat = 0x0000004B
- TextureFormatASTC6x6Unorm TextureFormat = 0x0000004C
- TextureFormatASTC6x6UnormSrgb TextureFormat = 0x0000004D
- TextureFormatASTC8x5Unorm TextureFormat = 0x0000004E
- TextureFormatASTC8x5UnormSrgb TextureFormat = 0x0000004F
- TextureFormatASTC8x6Unorm TextureFormat = 0x00000050
- TextureFormatASTC8x6UnormSrgb TextureFormat = 0x00000051
- TextureFormatASTC8x8Unorm TextureFormat = 0x00000052
- TextureFormatASTC8x8UnormSrgb TextureFormat = 0x00000053
- TextureFormatASTC10x5Unorm TextureFormat = 0x00000054
- TextureFormatASTC10x5UnormSrgb TextureFormat = 0x00000055
- TextureFormatASTC10x6Unorm TextureFormat = 0x00000056
- TextureFormatASTC10x6UnormSrgb TextureFormat = 0x00000057
- TextureFormatASTC10x8Unorm TextureFormat = 0x00000058
- TextureFormatASTC10x8UnormSrgb TextureFormat = 0x00000059
- TextureFormatASTC10x10Unorm TextureFormat = 0x0000005A
- TextureFormatASTC10x10UnormSrgb TextureFormat = 0x0000005B
- TextureFormatASTC12x10Unorm TextureFormat = 0x0000005C
- TextureFormatASTC12x10UnormSrgb TextureFormat = 0x0000005D
- TextureFormatASTC12x12Unorm TextureFormat = 0x0000005E
- TextureFormatASTC12x12UnormSrgb TextureFormat = 0x0000005F
- )
- func (v TextureFormat) String() string {
- switch v {
- case TextureFormatUndefined:
- return "undefined"
- case TextureFormatR8Unorm:
- return "r8unorm"
- case TextureFormatR8Snorm:
- return "r8snorm"
- case TextureFormatR8Uint:
- return "r8uint"
- case TextureFormatR8Sint:
- return "r8sint"
- case TextureFormatR16Uint:
- return "r16uint"
- case TextureFormatR16Sint:
- return "r16sint"
- case TextureFormatR16Float:
- return "r16float"
- case TextureFormatRG8Unorm:
- return "rg8unorm"
- case TextureFormatRG8Snorm:
- return "rg8snorm"
- case TextureFormatRG8Uint:
- return "rg8uint"
- case TextureFormatRG8Sint:
- return "rg8sint"
- case TextureFormatR32Float:
- return "r32float"
- case TextureFormatR32Uint:
- return "r32uint"
- case TextureFormatR32Sint:
- return "r32sint"
- case TextureFormatRG16Uint:
- return "rg16uint"
- case TextureFormatRG16Sint:
- return "rg16sint"
- case TextureFormatRG16Float:
- return "rg16float"
- case TextureFormatRGBA8Unorm:
- return "rgba8unorm"
- case TextureFormatRGBA8UnormSrgb:
- return "rgba8unorm-srgb"
- case TextureFormatRGBA8Snorm:
- return "rgba8snorm"
- case TextureFormatRGBA8Uint:
- return "rgba8uint"
- case TextureFormatRGBA8Sint:
- return "rgba8sint"
- case TextureFormatBGRA8Unorm:
- return "bgra8unorm"
- case TextureFormatBGRA8UnormSrgb:
- return "bgra8unorm-srgb"
- case TextureFormatRGB10A2Uint:
- return "rgb10a2uint"
- case TextureFormatRGB10A2Unorm:
- return "rgb10a2unorm"
- case TextureFormatRG11B10Ufloat:
- return "rg11b10ufloat"
- case TextureFormatRGB9E5Ufloat:
- return "rgb9e5ufloat"
- case TextureFormatRG32Float:
- return "rg32float"
- case TextureFormatRG32Uint:
- return "rg32uint"
- case TextureFormatRG32Sint:
- return "rg32sint"
- case TextureFormatRGBA16Uint:
- return "rgba16uint"
- case TextureFormatRGBA16Sint:
- return "rgba16sint"
- case TextureFormatRGBA16Float:
- return "rgba16float"
- case TextureFormatRGBA32Float:
- return "rgba32float"
- case TextureFormatRGBA32Uint:
- return "rgba32uint"
- case TextureFormatRGBA32Sint:
- return "rgba32sint"
- case TextureFormatStencil8:
- return "stencil8"
- case TextureFormatDepth16Unorm:
- return "depth16unorm"
- case TextureFormatDepth24Plus:
- return "depth24plus"
- case TextureFormatDepth24PlusStencil8:
- return "depth24plus-stencil8"
- case TextureFormatDepth32Float:
- return "depth32float"
- case TextureFormatDepth32FloatStencil8:
- return "depth32float-stencil8"
- case TextureFormatBC1RGBAUnorm:
- return "bc1rgba-unorm"
- case TextureFormatBC1RGBAUnormSrgb:
- return "bc1rgba-unorm-srgb"
- case TextureFormatBC2RGBAUnorm:
- return "bc2rgba-unorm"
- case TextureFormatBC2RGBAUnormSrgb:
- return "bc2rgba-unorm-srgb"
- case TextureFormatBC3RGBAUnorm:
- return "bc3rgba-unorm"
- case TextureFormatBC3RGBAUnormSrgb:
- return "bc3rgba-unorm-srgb"
- case TextureFormatBC4RUnorm:
- return "bc4r-unorm"
- case TextureFormatBC4RSnorm:
- return "bc4r-snorm"
- case TextureFormatBC5RGUnorm:
- return "bc5rg-unorm"
- case TextureFormatBC5RGSnorm:
- return "bc5rg-snorm"
- case TextureFormatBC6HRGBUfloat:
- return "bc6hrgb-ufloat"
- case TextureFormatBC6HRGBFloat:
- return "bc6hrgb-float"
- case TextureFormatBC7RGBAUnorm:
- return "bc7rgba-unorm"
- case TextureFormatBC7RGBAUnormSrgb:
- return "bc7rgba-unorm-srgb"
- case TextureFormatETC2RGB8Unorm:
- return "etc2rgb8unorm"
- case TextureFormatETC2RGB8UnormSrgb:
- return "etc2rgb8unorm-srgb"
- case TextureFormatETC2RGB8A1Unorm:
- return "etc2rgb8a1unorm"
- case TextureFormatETC2RGB8A1UnormSrgb:
- return "etc2rgb8a1unorm-srgb"
- case TextureFormatETC2RGBA8Unorm:
- return "etc2rgba8unorm"
- case TextureFormatETC2RGBA8UnormSrgb:
- return "etc2rgba8unorm-srgb"
- case TextureFormatEACR11Unorm:
- return "eacr11unorm"
- case TextureFormatEACR11Snorm:
- return "eacr11snorm"
- case TextureFormatEACRG11Unorm:
- return "eacrg11unorm"
- case TextureFormatEACRG11Snorm:
- return "eacrg11snorm"
- case TextureFormatASTC4x4Unorm:
- return "astc4x4unorm"
- case TextureFormatASTC4x4UnormSrgb:
- return "astc4x4unorm-srgb"
- case TextureFormatASTC5x4Unorm:
- return "astc5x4unorm"
- case TextureFormatASTC5x4UnormSrgb:
- return "astc5x4unorm-srgb"
- case TextureFormatASTC5x5Unorm:
- return "astc5x5unorm"
- case TextureFormatASTC5x5UnormSrgb:
- return "astc5x5unorm-srgb"
- case TextureFormatASTC6x5Unorm:
- return "astc6x5unorm"
- case TextureFormatASTC6x5UnormSrgb:
- return "astc6x5unorm-srgb"
- case TextureFormatASTC6x6Unorm:
- return "astc6x6unorm"
- case TextureFormatASTC6x6UnormSrgb:
- return "astc6x6unorm-srgb"
- case TextureFormatASTC8x5Unorm:
- return "astc8x5unorm"
- case TextureFormatASTC8x5UnormSrgb:
- return "astc8x5unorm-srgb"
- case TextureFormatASTC8x6Unorm:
- return "astc8x6unorm"
- case TextureFormatASTC8x6UnormSrgb:
- return "astc8x6unorm-srgb"
- case TextureFormatASTC8x8Unorm:
- return "astc8x8unorm"
- case TextureFormatASTC8x8UnormSrgb:
- return "astc8x8unorm-srgb"
- case TextureFormatASTC10x5Unorm:
- return "astc10x5unorm"
- case TextureFormatASTC10x5UnormSrgb:
- return "astc10x5unorm-srgb"
- case TextureFormatASTC10x6Unorm:
- return "astc10x6unorm"
- case TextureFormatASTC10x6UnormSrgb:
- return "astc10x6unorm-srgb"
- case TextureFormatASTC10x8Unorm:
- return "astc10x8unorm"
- case TextureFormatASTC10x8UnormSrgb:
- return "astc10x8unorm-srgb"
- case TextureFormatASTC10x10Unorm:
- return "astc10x10unorm"
- case TextureFormatASTC10x10UnormSrgb:
- return "astc10x10unorm-srgb"
- case TextureFormatASTC12x10Unorm:
- return "astc12x10unorm"
- case TextureFormatASTC12x10UnormSrgb:
- return "astc12x10unorm-srgb"
- case TextureFormatASTC12x12Unorm:
- return "astc12x12unorm"
- case TextureFormatASTC12x12UnormSrgb:
- return "astc12x12unorm-srgb"
- default:
- return ""
- }
- }
- type TextureSampleType uint32
- const (
- TextureSampleTypeUndefined TextureSampleType = 0x00000000
- TextureSampleTypeFloat TextureSampleType = 0x00000001
- TextureSampleTypeUnfilterableFloat TextureSampleType = 0x00000002
- TextureSampleTypeDepth TextureSampleType = 0x00000003
- TextureSampleTypeSint TextureSampleType = 0x00000004
- TextureSampleTypeUint TextureSampleType = 0x00000005
- )
- func (v TextureSampleType) String() string {
- switch v {
- case TextureSampleTypeUndefined:
- return "undefined"
- case TextureSampleTypeFloat:
- return "float"
- case TextureSampleTypeUnfilterableFloat:
- return "unfilterable-float"
- case TextureSampleTypeDepth:
- return "depth"
- case TextureSampleTypeSint:
- return "sint"
- case TextureSampleTypeUint:
- return "uint"
- default:
- return ""
- }
- }
- type TextureUsage uint32
- const (
- TextureUsageNone TextureUsage = 0x00000000
- TextureUsageCopySrc TextureUsage = 0x00000001
- TextureUsageCopyDst TextureUsage = 0x00000002
- TextureUsageTextureBinding TextureUsage = 0x00000004
- TextureUsageStorageBinding TextureUsage = 0x00000008
- TextureUsageRenderAttachment TextureUsage = 0x00000010
- )
- func (v TextureUsage) String() string {
- switch v {
- case TextureUsageNone:
- return "none"
- case TextureUsageCopySrc:
- return "copy-src"
- case TextureUsageCopyDst:
- return "copy-dst"
- case TextureUsageTextureBinding:
- return "texture-binding"
- case TextureUsageStorageBinding:
- return "storage-binding"
- case TextureUsageRenderAttachment:
- return "render-attachment"
- default:
- return ""
- }
- }
- type TextureViewDimension uint32
- const (
- TextureViewDimensionUndefined TextureViewDimension = 0x00000000
- TextureViewDimension1D TextureViewDimension = 0x00000001
- TextureViewDimension2D TextureViewDimension = 0x00000002
- TextureViewDimension2DArray TextureViewDimension = 0x00000003
- TextureViewDimensionCube TextureViewDimension = 0x00000004
- TextureViewDimensionCubeArray TextureViewDimension = 0x00000005
- TextureViewDimension3D TextureViewDimension = 0x00000006
- )
- func (v TextureViewDimension) String() string {
- switch v {
- case TextureViewDimensionUndefined:
- return "undefined"
- case TextureViewDimension1D:
- return "1d"
- case TextureViewDimension2D:
- return "2d"
- case TextureViewDimension2DArray:
- return "2d-array"
- case TextureViewDimensionCube:
- return "cube"
- case TextureViewDimensionCubeArray:
- return "cube-array"
- case TextureViewDimension3D:
- return "3d"
- default:
- return ""
- }
- }
- type VertexFormat uint32
- const (
- VertexFormatUndefined VertexFormat = 0x00000000
- VertexFormatUint8x2 VertexFormat = 0x00000001
- VertexFormatUint8x4 VertexFormat = 0x00000002
- VertexFormatSint8x2 VertexFormat = 0x00000003
- VertexFormatSint8x4 VertexFormat = 0x00000004
- VertexFormatUnorm8x2 VertexFormat = 0x00000005
- VertexFormatUnorm8x4 VertexFormat = 0x00000006
- VertexFormatSnorm8x2 VertexFormat = 0x00000007
- VertexFormatSnorm8x4 VertexFormat = 0x00000008
- VertexFormatUint16x2 VertexFormat = 0x00000009
- VertexFormatUint16x4 VertexFormat = 0x0000000A
- VertexFormatSint16x2 VertexFormat = 0x0000000B
- VertexFormatSint16x4 VertexFormat = 0x0000000C
- VertexFormatUnorm16x2 VertexFormat = 0x0000000D
- VertexFormatUnorm16x4 VertexFormat = 0x0000000E
- VertexFormatSnorm16x2 VertexFormat = 0x0000000F
- VertexFormatSnorm16x4 VertexFormat = 0x00000010
- VertexFormatFloat16x2 VertexFormat = 0x00000011
- VertexFormatFloat16x4 VertexFormat = 0x00000012
- VertexFormatFloat32 VertexFormat = 0x00000013
- VertexFormatFloat32x2 VertexFormat = 0x00000014
- VertexFormatFloat32x3 VertexFormat = 0x00000015
- VertexFormatFloat32x4 VertexFormat = 0x00000016
- VertexFormatUint32 VertexFormat = 0x00000017
- VertexFormatUint32x2 VertexFormat = 0x00000018
- VertexFormatUint32x3 VertexFormat = 0x00000019
- VertexFormatUint32x4 VertexFormat = 0x0000001A
- VertexFormatSint32 VertexFormat = 0x0000001B
- VertexFormatSint32x2 VertexFormat = 0x0000001C
- VertexFormatSint32x3 VertexFormat = 0x0000001D
- VertexFormatSint32x4 VertexFormat = 0x0000001E
- )
- func (v VertexFormat) String() string {
- switch v {
- case VertexFormatUndefined:
- return "undefined"
- case VertexFormatUint8x2:
- return "uint8x2"
- case VertexFormatUint8x4:
- return "uint8x4"
- case VertexFormatSint8x2:
- return "sint8x2"
- case VertexFormatSint8x4:
- return "sint8x4"
- case VertexFormatUnorm8x2:
- return "unorm8x2"
- case VertexFormatUnorm8x4:
- return "unorm8x4"
- case VertexFormatSnorm8x2:
- return "snorm8x2"
- case VertexFormatSnorm8x4:
- return "snorm8x4"
- case VertexFormatUint16x2:
- return "uint16x2"
- case VertexFormatUint16x4:
- return "uint16x4"
- case VertexFormatSint16x2:
- return "sint16x2"
- case VertexFormatSint16x4:
- return "sint16x4"
- case VertexFormatUnorm16x2:
- return "unorm16x2"
- case VertexFormatUnorm16x4:
- return "unorm16x4"
- case VertexFormatSnorm16x2:
- return "snorm16x2"
- case VertexFormatSnorm16x4:
- return "snorm16x4"
- case VertexFormatFloat16x2:
- return "float16x2"
- case VertexFormatFloat16x4:
- return "float16x4"
- case VertexFormatFloat32:
- return "float32"
- case VertexFormatFloat32x2:
- return "float32x2"
- case VertexFormatFloat32x3:
- return "float32x3"
- case VertexFormatFloat32x4:
- return "float32x4"
- case VertexFormatUint32:
- return "uint32"
- case VertexFormatUint32x2:
- return "uint32x2"
- case VertexFormatUint32x3:
- return "uint32x3"
- case VertexFormatUint32x4:
- return "uint32x4"
- case VertexFormatSint32:
- return "sint32"
- case VertexFormatSint32x2:
- return "sint32x2"
- case VertexFormatSint32x3:
- return "sint32x3"
- case VertexFormatSint32x4:
- return "sint32x4"
- default:
- return ""
- }
- }
- type VertexStepMode uint32
- const (
- VertexStepModeVertex VertexStepMode = 0x00000000
- VertexStepModeInstance VertexStepMode = 0x00000001
- VertexStepModeVertexBufferNotUsed VertexStepMode = 0x00000002
- )
- func (v VertexStepMode) String() string {
- switch v {
- case VertexStepModeVertex:
- return "vertex"
- case VertexStepModeInstance:
- return "instance"
- case VertexStepModeVertexBufferNotUsed:
- return "vertex-buffer-not-used"
- default:
- return ""
- }
- }
- type WGSLFeatureName uint32
- const (
- WGSLFeatureNameUndefined WGSLFeatureName = 0x00000000
- WGSLFeatureNameReadonlyAndReadwriteStorageTextures WGSLFeatureName = 0x00000001
- WGSLFeatureNamePacked4x8IntegerDotProduct WGSLFeatureName = 0x00000002
- WGSLFeatureNameUnrestrictedPointerParameters WGSLFeatureName = 0x00000003
- WGSLFeatureNamePointerCompositeAccess WGSLFeatureName = 0x00000004
- )
- func (v WGSLFeatureName) String() string {
- switch v {
- case WGSLFeatureNameUndefined:
- return "undefined"
- case WGSLFeatureNameReadonlyAndReadwriteStorageTextures:
- return "readonly-and-readwrite-storage-textures"
- case WGSLFeatureNamePacked4x8IntegerDotProduct:
- return "packed4x8integer-dot-product"
- case WGSLFeatureNameUnrestrictedPointerParameters:
- return "unrestricted-pointer-parameters"
- case WGSLFeatureNamePointerCompositeAccess:
- return "pointer-composite-access"
- default:
- return ""
- }
- }
|