wgpu_wasm

package
v0.0.0-...-4c0541c Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertColorToArray

func ConvertColorToArray(point *wgpu.Color) js.Value

func ConvertExtends3DToArray

func ConvertExtends3DToArray(point *wgpu.Extent3D) js.Value

func ConvertImageCopyBufferToMap

func ConvertImageCopyBufferToMap(source *wgpu.ImageCopyBuffer) map[string]any

func ConvertImageImageCopyTexture

func ConvertImageImageCopyTexture(destination *wgpu.ImageCopyTexture) map[string]any

func ConvertOrigin3DToArray

func ConvertOrigin3DToArray(point *wgpu.Origin3D) js.Value

Types

type Buffer

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

func (*Buffer) GetMappedRange

func (b *Buffer) GetMappedRange(offset, size uint) []byte

func (*Buffer) MapAsync

func (b *Buffer) MapAsync(mode wgpu.MapMode, offset uint64, size uint64, callback wgpu.BufferMapCallback)

func (*Buffer) Release

func (b *Buffer) Release()

func (*Buffer) Unmap

func (b *Buffer) Unmap()

type RenderBundleEncoder

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

func (*RenderBundleEncoder) Draw

func (rbe *RenderBundleEncoder) Draw(vertexCount, instanceCount, firstVertex, firstInstance uint32)

func (*RenderBundleEncoder) DrawIndexed

func (rbe *RenderBundleEncoder) DrawIndexed(indexCount, instanceCount, firstIndex, baseVertex, firstInstance uint32)

func (*RenderBundleEncoder) DrawIndexedIndirect

func (rbe *RenderBundleEncoder) DrawIndexedIndirect(indirectBuffer wgpu.IBuffer, indirectOffset uint64)

func (*RenderBundleEncoder) DrawIndirect

func (rbe *RenderBundleEncoder) DrawIndirect(indirectBuffer wgpu.IBuffer, indirectOffset uint64)

func (*RenderBundleEncoder) Finish

func (*RenderBundleEncoder) InsertDebugMarker

func (rbe *RenderBundleEncoder) InsertDebugMarker(markerLabel string)

func (*RenderBundleEncoder) PopDebugGroup

func (rbe *RenderBundleEncoder) PopDebugGroup()

func (*RenderBundleEncoder) PushDebugGroup

func (rbe *RenderBundleEncoder) PushDebugGroup(groupLabel string)

func (*RenderBundleEncoder) Release

func (rbe *RenderBundleEncoder) Release()

func (*RenderBundleEncoder) SetBindGroup

func (rbe *RenderBundleEncoder) SetBindGroup(groupIndex uint32, group wgpu.IGPUBindGroup, dynamicOffsets []uint32)

func (*RenderBundleEncoder) SetIndexBuffer

func (rbe *RenderBundleEncoder) SetIndexBuffer(buffer wgpu.IBuffer, format wgpu.IndexFormat, offset, size uint64)

func (*RenderBundleEncoder) SetPipeline

func (rbe *RenderBundleEncoder) SetPipeline(pipeline wgpu.IRenderPipeLine)

func (*RenderBundleEncoder) SetVertexBuffer

func (rbe *RenderBundleEncoder) SetVertexBuffer(slot uint32, buffer wgpu.IBuffer, offset, size uint64)

type Texture

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

func (*Texture) CreateView

func (p *Texture) CreateView(descriptor *wgpu.TextureViewDescriptor) wgpu.ITextureView

func (*Texture) Release

func (p *Texture) Release()

Jump to

Keyboard shortcuts

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