gioui.org: gioui.org/app/internal/d3d11 Index | Files

package d3d11

import "gioui.org/app/internal/d3d11"

Index

Package Files

backend_windows.go d3d11_windows.go

Constants

const (
    DXGI_STATUS_OCCLUDED      = 0x087A0001
    DXGI_ERROR_DEVICE_RESET   = 0x887A0007
    DXGI_ERROR_DEVICE_REMOVED = 0x887A0005
    D3DDDIERR_DEVICEREMOVED   = 1<<31 | 0x876<<16 | 2160
)

type Backend Uses

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

func NewBackend Uses

func NewBackend(d *Device) (*Backend, error)

func (*Backend) BeginFrame Uses

func (b *Backend) BeginFrame()

func (*Backend) BindFramebuffer Uses

func (b *Backend) BindFramebuffer(fbo backend.Framebuffer)

func (*Backend) BindIndexBuffer Uses

func (b *Backend) BindIndexBuffer(buf backend.Buffer)

func (*Backend) BindInputLayout Uses

func (b *Backend) BindInputLayout(layout backend.InputLayout)

func (*Backend) BindProgram Uses

func (b *Backend) BindProgram(prog backend.Program)

func (*Backend) BindTexture Uses

func (b *Backend) BindTexture(unit int, tex backend.Texture)

func (*Backend) BindVertexBuffer Uses

func (b *Backend) BindVertexBuffer(buf backend.Buffer, stride, offset int)

func (*Backend) BlendFunc Uses

func (b *Backend) BlendFunc(sfactor, dfactor backend.BlendFactor)

func (*Backend) Caps Uses

func (b *Backend) Caps() backend.Caps

func (*Backend) Clear Uses

func (b *Backend) Clear(colr, colg, colb, cola float32)

func (*Backend) ClearDepth Uses

func (b *Backend) ClearDepth(depth float32)

func (*Backend) CurrentFramebuffer Uses

func (b *Backend) CurrentFramebuffer() backend.Framebuffer

func (*Backend) DepthFunc Uses

func (b *Backend) DepthFunc(f backend.DepthFunc)

func (*Backend) DepthMask Uses

func (b *Backend) DepthMask(mask bool)

func (*Backend) DrawArrays Uses

func (b *Backend) DrawArrays(mode backend.DrawMode, off, count int)

func (*Backend) DrawElements Uses

func (b *Backend) DrawElements(mode backend.DrawMode, off, count int)

func (*Backend) EndFrame Uses

func (b *Backend) EndFrame()

func (*Backend) IsTimeContinuous Uses

func (b *Backend) IsTimeContinuous() bool

func (*Backend) NewBuffer Uses

func (b *Backend) NewBuffer(typ backend.BufferBinding, size int) (backend.Buffer, error)

func (*Backend) NewFramebuffer Uses

func (b *Backend) NewFramebuffer(tex backend.Texture, depthBits int) (backend.Framebuffer, error)

func (*Backend) NewImmutableBuffer Uses

func (b *Backend) NewImmutableBuffer(typ backend.BufferBinding, data []byte) (backend.Buffer, error)

func (*Backend) NewInputLayout Uses

func (b *Backend) NewInputLayout(vertexShader backend.ShaderSources, layout []backend.InputDesc) (backend.InputLayout, error)

func (*Backend) NewProgram Uses

func (b *Backend) NewProgram(vertexShader, fragmentShader backend.ShaderSources) (backend.Program, error)

func (*Backend) NewTexture Uses

func (b *Backend) NewTexture(format backend.TextureFormat, width, height int, minFilter, magFilter backend.TextureFilter, bindings backend.BufferBinding) (backend.Texture, error)

func (*Backend) NewTimer Uses

func (b *Backend) NewTimer() backend.Timer

func (*Backend) SetBlend Uses

func (b *Backend) SetBlend(enable bool)

func (*Backend) SetDepthTest Uses

func (b *Backend) SetDepthTest(enable bool)

func (*Backend) Viewport Uses

func (b *Backend) Viewport(x, y, width, height int)

type Buffer Uses

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

func (*Buffer) Release Uses

func (b *Buffer) Release()

func (*Buffer) Upload Uses

func (b *Buffer) Upload(data []byte)

type Device Uses

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

func NewDevice Uses

func NewDevice() (*Device, error)

func (*Device) CreateSwapChain Uses

func (d *Device) CreateSwapChain(hwnd windows.Handle) (*SwapChain, error)

func (*Device) Release Uses

func (d *Device) Release()

type ErrorCode Uses

type ErrorCode struct {
    Name string
    Code uint32
}

func (ErrorCode) Error Uses

func (e ErrorCode) Error() string

type Framebuffer Uses

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

func (*Framebuffer) Invalidate Uses

func (f *Framebuffer) Invalidate()

func (*Framebuffer) ReadPixels Uses

func (f *Framebuffer) ReadPixels(src image.Rectangle, pixels []byte) error

func (*Framebuffer) Release Uses

func (f *Framebuffer) Release()

type InputLayout Uses

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

func (*InputLayout) Release Uses

func (l *InputLayout) Release()

type Program Uses

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

func (*Program) Release Uses

func (p *Program) Release()

func (*Program) SetFragmentUniforms Uses

func (p *Program) SetFragmentUniforms(buf backend.Buffer)

func (*Program) SetVertexUniforms Uses

func (p *Program) SetVertexUniforms(buf backend.Buffer)

type SwapChain Uses

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

func (*SwapChain) Framebuffer Uses

func (s *SwapChain) Framebuffer(d *Device) (*Framebuffer, error)

func (*SwapChain) Present Uses

func (s *SwapChain) Present() error

func (*SwapChain) Release Uses

func (s *SwapChain) Release()

func (*SwapChain) Resize Uses

func (s *SwapChain) Resize() error

type Texture Uses

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

func (*Texture) Release Uses

func (t *Texture) Release()

func (*Texture) Upload Uses

func (t *Texture) Upload(img *image.RGBA)

Package d3d11 imports 10 packages (graph). Updated 2020-11-26 with GOOS=windows. Refresh now. Tools for package owners.