Documentation ¶
Index ¶
- func ConvertColorToArray(point *wgpu.Color) js.Value
- func ConvertExtends3DToArray(point *wgpu.Extent3D) js.Value
- func ConvertImageCopyBufferToMap(source *wgpu.ImageCopyBuffer) map[string]any
- func ConvertImageImageCopyTexture(destination *wgpu.ImageCopyTexture) map[string]any
- func ConvertOrigin3DToArray(point *wgpu.Origin3D) js.Value
- type Buffer
- type RenderBundleEncoder
- func (rbe *RenderBundleEncoder) Draw(vertexCount, instanceCount, firstVertex, firstInstance uint32)
- func (rbe *RenderBundleEncoder) DrawIndexed(indexCount, instanceCount, firstIndex, baseVertex, firstInstance uint32)
- func (rbe *RenderBundleEncoder) DrawIndexedIndirect(indirectBuffer wgpu.IBuffer, indirectOffset uint64)
- func (rbe *RenderBundleEncoder) DrawIndirect(indirectBuffer wgpu.IBuffer, indirectOffset uint64)
- func (rbe *RenderBundleEncoder) Finish(descriptor *wgpu.RenderBundleDescriptor) wgpu.IRenderBundle
- func (rbe *RenderBundleEncoder) InsertDebugMarker(markerLabel string)
- func (rbe *RenderBundleEncoder) PopDebugGroup()
- func (rbe *RenderBundleEncoder) PushDebugGroup(groupLabel string)
- func (rbe *RenderBundleEncoder) Release()
- func (rbe *RenderBundleEncoder) SetBindGroup(groupIndex uint32, group wgpu.IGPUBindGroup, dynamicOffsets []uint32)
- func (rbe *RenderBundleEncoder) SetIndexBuffer(buffer wgpu.IBuffer, format wgpu.IndexFormat, offset, size uint64)
- func (rbe *RenderBundleEncoder) SetPipeline(pipeline wgpu.IRenderPipeLine)
- func (rbe *RenderBundleEncoder) SetVertexBuffer(slot uint32, buffer wgpu.IBuffer, offset, size uint64)
- type Texture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageCopyBufferToMap ¶
func ConvertImageCopyBufferToMap(source *wgpu.ImageCopyBuffer) map[string]any
func ConvertImageImageCopyTexture ¶
func ConvertImageImageCopyTexture(destination *wgpu.ImageCopyTexture) map[string]any
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) GetMappedRange ¶
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 (rbe *RenderBundleEncoder) Finish(descriptor *wgpu.RenderBundleDescriptor) wgpu.IRenderBundle
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
Click to show internal directories.
Click to hide internal directories.