Versions in this module Expand all Collapse all v0 v0.31.0 Aug 2, 2026 Changes in this version + type BufferState struct — darwin/amd64, linux/amd64, windows/amd64 + func (s BufferState) Usage() BufferUses + type BufferTracker struct — darwin/amd64, linux/amd64, windows/amd64 + func NewBufferTracker() *BufferTracker + func (t *BufferTracker) GetUsage(index TrackerIndex) BufferUses + func (t *BufferTracker) InsertSingle(index TrackerIndex, usage BufferUses) + func (t *BufferTracker) IsTracked(index TrackerIndex) bool + func (t *BufferTracker) Merge(scope *BufferUsageScope) []PendingTransition + func (t *BufferTracker) Remove(index TrackerIndex) + func (t *BufferTracker) SetUsage(index TrackerIndex, usage BufferUses) + func (t *BufferTracker) Size() int + type BufferUsageScope struct — darwin/amd64, linux/amd64, windows/amd64 + func NewBufferUsageScope() *BufferUsageScope + func (s *BufferUsageScope) Clear() + func (s *BufferUsageScope) GetUsage(index TrackerIndex) BufferUses + func (s *BufferUsageScope) IsUsed(index TrackerIndex) bool + func (s *BufferUsageScope) SetUsage(index TrackerIndex, usage BufferUses) error + type BufferUses uint32 — darwin/amd64, linux/amd64, windows/amd64 + const BufferUsesCopyDst + const BufferUsesCopySrc + const BufferUsesIndex + const BufferUsesIndirect + const BufferUsesMapRead + const BufferUsesMapWrite + const BufferUsesNone + const BufferUsesQueryResolve + const BufferUsesStorageRead + const BufferUsesStorageWrite + const BufferUsesUniform + const BufferUsesVertex + func (u BufferUses) Contains(other BufferUses) bool + func (u BufferUses) IsCompatible(other BufferUses) bool + func (u BufferUses) IsEmpty() bool + func (u BufferUses) IsReadOnly() bool + func (u BufferUses) ToBufferUsage() gputypes.BufferUsage + type PendingTransition struct — darwin/amd64, linux/amd64, windows/amd64 + Index TrackerIndex + Usage StateTransition + func (p PendingTransition) IntoHAL(buffer hal.Buffer) hal.BufferBarrier + type ResourceMetadata struct — darwin/amd64, linux/amd64, windows/amd64 + func NewResourceMetadata() ResourceMetadata + func (m *ResourceMetadata) Clear() + func (m *ResourceMetadata) Count() int + func (m *ResourceMetadata) IsOwned(index TrackerIndex) bool + func (m *ResourceMetadata) SetOwned(index TrackerIndex, owned bool) + type SharedTrackerIndexAllocator struct — darwin/amd64, linux/amd64, windows/amd64 + func NewSharedTrackerIndexAllocator() *SharedTrackerIndexAllocator + func (s *SharedTrackerIndexAllocator) Alloc() TrackerIndex + func (s *SharedTrackerIndexAllocator) Free(idx TrackerIndex) + func (s *SharedTrackerIndexAllocator) HighWaterMark() TrackerIndex + func (s *SharedTrackerIndexAllocator) Size() int + type StateTransition struct — darwin/amd64, linux/amd64, windows/amd64 + From BufferUses + To BufferUses + func (t StateTransition) NeedsBarrier() bool + type TrackerIndex uint32 — darwin/amd64, linux/amd64, windows/amd64 + const InvalidTrackerIndex + func (i TrackerIndex) IsValid() bool + type TrackerIndexAllocator struct — darwin/amd64, linux/amd64, windows/amd64 + func NewTrackerIndexAllocator() *TrackerIndexAllocator + func (a *TrackerIndexAllocator) Alloc() TrackerIndex + func (a *TrackerIndexAllocator) Free(idx TrackerIndex) + func (a *TrackerIndexAllocator) HighWaterMark() TrackerIndex + func (a *TrackerIndexAllocator) Reset() + func (a *TrackerIndexAllocator) Size() int + type TrackerIndexAllocators struct — darwin/amd64, linux/amd64, windows/amd64 + BindGroupLayouts *SharedTrackerIndexAllocator + BindGroups *SharedTrackerIndexAllocator + Buffers *SharedTrackerIndexAllocator + ComputePipelines *SharedTrackerIndexAllocator + RenderPipelines *SharedTrackerIndexAllocator + Samplers *SharedTrackerIndexAllocator + TextureViews *SharedTrackerIndexAllocator + Textures *SharedTrackerIndexAllocator + func NewTrackerIndexAllocators() *TrackerIndexAllocators + type TrackingData struct — darwin/amd64, linux/amd64, windows/amd64 + func NewTrackingData(allocator *SharedTrackerIndexAllocator) *TrackingData + func (t *TrackingData) Index() TrackerIndex + func (t *TrackingData) IsReleased() bool + func (t *TrackingData) Release() + type TrackingDataInit interface — darwin/amd64, linux/amd64, windows/amd64 + InitTracking func(allocator *SharedTrackerIndexAllocator) + type UsageConflictError struct — darwin/amd64, linux/amd64, windows/amd64 + Existing BufferUses + Index TrackerIndex + New BufferUses + func (e *UsageConflictError) Error() string