Buffer

package
v0.0.0-...-9749107 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

func NewStaticArrayBuffer

func NewStaticArrayBuffer(data interface{}) Buffer

func (*Buffer) Bind

func (buffer *Buffer) Bind()

func (*Buffer) Destroy

func (buffer *Buffer) Destroy()

func (*Buffer) GetID

func (buffer *Buffer) GetID() uint32

func (*Buffer) Set

func (buffer *Buffer) Set(data interface{})

func (*Buffer) Sync

func (buffer *Buffer) Sync()

type DynamicBuffer

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

func NewDynamicArrayBuffer

func NewDynamicArrayBuffer(data IDynamicBufferData) DynamicBuffer

func (*DynamicBuffer) Set

func (buffer *DynamicBuffer) Set(data IDynamicBufferData)

func (*DynamicBuffer) Sync

func (buffer *DynamicBuffer) Sync()

type DynamicBufferData

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

func (*DynamicBufferData) IsSync

func (data *DynamicBufferData) IsSync() bool

func (*DynamicBufferData) SetIsSync

func (data *DynamicBufferData) SetIsSync(val bool)

type IBuffer

type IBuffer interface {
	GetID() uint32
	Destroy()
	Bind()
	Sync()
}

type IDynamicBufferData

type IDynamicBufferData interface {
	IsSync() bool
	SetIsSync(val bool)
	GetBufferData() interface{}
}

type ShaderStorageBuffer

type ShaderStorageBuffer struct {
	DynamicBuffer
	// contains filtered or unexported fields
}

func NewShaderStorageBuffer

func NewShaderStorageBuffer(data IDynamicBufferData, binding uint32) ShaderStorageBuffer

func (*ShaderStorageBuffer) GetBinding

func (buffer *ShaderStorageBuffer) GetBinding() uint32

type UniformBuffer

type UniformBuffer struct {
	DynamicBuffer
	// contains filtered or unexported fields
}

func NewUniformBuffer

func NewUniformBuffer(data IDynamicBufferData, binding uint32) UniformBuffer

func (*UniformBuffer) GetBinding

func (buffer *UniformBuffer) GetBinding() uint32

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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