github.com/gogpu/gputypes
Package gputypes provides WebGPU type definitions for the gogpu ecosystem. gputypes is the single source of truth for WebGPU types, providing all enums, structs, and constants used across the ecosystem. It has ZERO external dependencies, making it the foundation package that all other packages can safely import. gputypes sits at the bottom of the dependency graph: The package provides types in several categories: Texture types: TextureFormat, TextureUsage, TextureDimension, TextureDescriptor, etc. Buffer types: BufferUsage, BufferDescriptor, IndexFormat, etc. Sampler types: AddressMode, FilterMode, CompareFunction, SamplerDescriptor, etc. Render types: BlendState, BlendFactor, BlendOperation, PrimitiveTopology, etc. Shader types: ShaderStage, ShaderModuleDescriptor, etc. Vertex types: VertexFormat, VertexStepMode, VertexAttribute, etc. Binding types: BindGroupLayoutEntry, BufferBindingLayout, TextureBindingLayout, etc. Adapter types: DeviceType, AdapterInfo, PowerPreference, Backend, etc. Limits and Features: Limits struct, Features flags, etc. Geometry types: Extent3D, Origin3D, Color, etc. Import the package and use types directly: Types follow the W3C WebGPU specification: https://www.w3.org/TR/webgpu/ Naming conventions follow wgpu-types (Rust) where applicable: https://docs.rs/wgpu-types
proxy.golang.org
v0.2.0
about 1 month ago
2
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
Repository
| Stars | 0 on GitHub |
| Forks | 0 on GitHub |