Versions in this module Expand all Collapse all v0 v0.8.0 Dec 28, 2024 Changes in this version + const BIND_CONSTANT_BUFFER — windows/amd64 + const BIND_DEPTH_STENCIL — windows/amd64 + const BIND_INDEX_BUFFER — windows/amd64 + const BIND_RENDER_TARGET — windows/amd64 + const BIND_SHADER_RESOURCE — windows/amd64 + const BIND_UNORDERED_ACCESS — windows/amd64 + const BIND_VERTEX_BUFFER — windows/amd64 + const BLEND_DEST_ALPHA — windows/amd64 + const BLEND_DEST_COLOR — windows/amd64 + const BLEND_INV_SRC_ALPHA — windows/amd64 + const BLEND_ONE — windows/amd64 + const BLEND_OP_ADD — windows/amd64 + const BLEND_ZERO — windows/amd64 + const BUFFEREX_SRV_FLAG_RAW — windows/amd64 + const BUFFER_UAV_FLAG_RAW — windows/amd64 + const CLEAR_DEPTH — windows/amd64 + const CLEAR_STENCIL — windows/amd64 + const COLOR_WRITE_ENABLE_ALL — windows/amd64 + const COMPARISON_GREATER — windows/amd64 + const COMPARISON_GREATER_EQUAL — windows/amd64 + const CPU_ACCESS_READ — windows/amd64 + const CREATE_DEVICE_DEBUG — windows/amd64 + const CULL_NONE — windows/amd64 + const D3DDDIERR_DEVICEREMOVED — windows/amd64 + const DEPTH_WRITE_MASK_ALL — windows/amd64 + const DRIVER_TYPE_HARDWARE — windows/amd64 + const DSV_DIMENSION_TEXTURE2D — windows/amd64 + const DXGI_DEBUG_RLO_DETAIL — windows/amd64 + const DXGI_DEBUG_RLO_IGNORE_INTERNAL — windows/amd64 + const DXGI_DEBUG_RLO_SUMMARY — windows/amd64 + const DXGI_ERROR_DEVICE_REMOVED — windows/amd64 + const DXGI_ERROR_DEVICE_RESET — windows/amd64 + const DXGI_FORMAT_D24_UNORM_S8_UINT — windows/amd64 + const DXGI_FORMAT_R16G16B16A16_FLOAT — windows/amd64 + const DXGI_FORMAT_R16G16_FLOAT — windows/amd64 + const DXGI_FORMAT_R16G16_SINT — windows/amd64 + const DXGI_FORMAT_R16_FLOAT — windows/amd64 + const DXGI_FORMAT_R16_SINT — windows/amd64 + const DXGI_FORMAT_R16_UINT — windows/amd64 + const DXGI_FORMAT_R32G32B32A32_FLOAT — windows/amd64 + const DXGI_FORMAT_R32G32B32_FLOAT — windows/amd64 + const DXGI_FORMAT_R32G32_FLOAT — windows/amd64 + const DXGI_FORMAT_R32_FLOAT — windows/amd64 + const DXGI_FORMAT_R32_TYPELESS — windows/amd64 + const DXGI_FORMAT_R8G8B8A8_UNORM — windows/amd64 + const DXGI_FORMAT_R8G8B8A8_UNORM_SRGB — windows/amd64 + const DXGI_FORMAT_UNKNOWN — windows/amd64 + const DXGI_STATUS_OCCLUDED — windows/amd64 + const DXGI_SWAP_EFFECT_DISCARD — windows/amd64 + const DXGI_USAGE_RENDER_TARGET_OUTPUT — windows/amd64 + const FEATURE_LEVEL_11_0 — windows/amd64 + const FEATURE_LEVEL_9_1 — windows/amd64 + const FEATURE_LEVEL_9_3 — windows/amd64 + const FILL_SOLID — windows/amd64 + const FILTER_MIN_MAG_LINEAR_MIP_POINT — windows/amd64 + const FILTER_MIN_MAG_MIP_LINEAR — windows/amd64 + const FILTER_MIN_MAG_MIP_POINT — windows/amd64 + const FORMAT_SUPPORT_RENDER_TARGET — windows/amd64 + const FORMAT_SUPPORT_TEXTURE2D — windows/amd64 + const MAP_READ — windows/amd64 + const PRIMITIVE_TOPOLOGY_TRIANGLELIST — windows/amd64 + const PRIMITIVE_TOPOLOGY_TRIANGLESTRIP — windows/amd64 + const RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS — windows/amd64 + const RESOURCE_MISC_GENERATE_MIPS — windows/amd64 + const RLDO_DETAIL — windows/amd64 + const RLDO_IGNORE_INTERNAL — windows/amd64 + const RLDO_SUMMARY — windows/amd64 + const SDK_VERSION — windows/amd64 + const SRV_DIMENSION_BUFFER — windows/amd64 + const SRV_DIMENSION_BUFFEREX — windows/amd64 + const SRV_DIMENSION_TEXTURE2D — windows/amd64 + const TEXTURE_ADDRESS_CLAMP — windows/amd64 + const TEXTURE_ADDRESS_MIRROR — windows/amd64 + const TEXTURE_ADDRESS_WRAP — windows/amd64 + const UAV_DIMENSION_BUFFER — windows/amd64 + const UAV_DIMENSION_TEXTURE2D — windows/amd64 + const USAGE_IMMUTABLE — windows/amd64 + const USAGE_STAGING — windows/amd64 + var DXGI_DEBUG_ALL = GUID — windows/amd64 + var IID_ID3D11Debug = GUID — windows/amd64 + var IID_IDXGIDebug = GUID — windows/amd64 + var IID_IDXGIDevice = GUID — windows/amd64 + var IID_IDXGIFactory = GUID — windows/amd64 + var IID_Texture2D = GUID — windows/amd64 + func CreateDevice(driverType uint32, flags uint32) (*Device, *DeviceContext, uint32, error) — windows/amd64 + func CreateDeviceAndSwapChain(driverType uint32, flags uint32, swapDesc *DXGI_SWAP_CHAIN_DESC) (*Device, *DeviceContext, *IDXGISwapChain, uint32, error) — windows/amd64 + func IUnknownAddRef(obj unsafe.Pointer, addRefMethod uintptr) — windows/amd64 + func IUnknownRelease(obj unsafe.Pointer, releaseMethod uintptr) — windows/amd64 + func ReportLiveObjects() error — windows/amd64 + type BLEND_DESC struct — windows/amd64 + AlphaToCoverageEnable uint32 + IndependentBlendEnable uint32 + RenderTarget [8]RENDER_TARGET_BLEND_DESC + type BOX struct — windows/amd64 + Back uint32 + Bottom uint32 + Front uint32 + Left uint32 + Right uint32 + Top uint32 + type BUFFEREX_SRV struct — windows/amd64 + FirstElement uint32 + Flags uint32 + NumElements uint32 + type BUFFER_DESC struct — windows/amd64 + BindFlags uint32 + ByteWidth uint32 + CPUAccessFlags uint32 + MiscFlags uint32 + StructureByteStride uint32 + Usage uint32 + type BUFFER_UAV struct — windows/amd64 + FirstElement uint32 + Flags uint32 + NumElements uint32 + type BlendState struct — windows/amd64 + Vtbl ... + type Buffer struct — windows/amd64 + Vtbl ... + type ComputeShader struct — windows/amd64 + Vtbl ... + type DEPTH_STENCILOP_DESC struct — windows/amd64 + StencilDepthFailOp uint32 + StencilFailOp uint32 + StencilFunc uint32 + StencilPassOp uint32 + type DEPTH_STENCIL_DESC struct — windows/amd64 + BackFace DEPTH_STENCILOP_DESC + DepthEnable uint32 + DepthFunc uint32 + DepthWriteMask uint32 + FrontFace DEPTH_STENCILOP_DESC + StencilEnable uint32 + StencilReadMask uint8 + StencilWriteMask uint8 + type DEPTH_STENCIL_VIEW_DESC_TEX2D struct — windows/amd64 + Flags uint32 + Format uint32 + Texture2D TEX2D_DSV + ViewDimension uint32 + type DXGI_MODE_DESC struct — windows/amd64 + Format uint32 + Height uint32 + RefreshRate DXGI_RATIONAL + Scaling uint32 + ScanlineOrdering uint32 + Width uint32 + type DXGI_RATIONAL struct — windows/amd64 + Denominator uint32 + Numerator uint32 + type DXGI_SAMPLE_DESC struct — windows/amd64 + Count uint32 + Quality uint32 + type DXGI_SWAP_CHAIN_DESC struct — windows/amd64 + BufferCount uint32 + BufferDesc DXGI_MODE_DESC + BufferUsage uint32 + Flags uint32 + OutputWindow windows.Handle + SampleDesc DXGI_SAMPLE_DESC + SwapEffect uint32 + Windowed uint32 + type Debug struct — windows/amd64 + Vtbl ... + func (d *Debug) ReportLiveDeviceObjects(flags uint32) + type DepthStencilState struct — windows/amd64 + Vtbl ... + type DepthStencilView struct — windows/amd64 + Vtbl ... + func CreateDepthView(d *Device, width, height, depthBits int) (*DepthStencilView, error) + type Device struct — windows/amd64 + Vtbl ... + func (d *Device) CheckFormatSupport(format uint32) (uint32, error) + func (d *Device) CreateBlendState(desc *BLEND_DESC) (*BlendState, error) + func (d *Device) CreateBuffer(desc *BUFFER_DESC, data []byte) (*Buffer, error) + func (d *Device) CreateComputeShader(bytecode []byte) (*ComputeShader, error) + func (d *Device) CreateDepthStencilState(desc *DEPTH_STENCIL_DESC) (*DepthStencilState, error) + func (d *Device) CreateDepthStencilViewTEX2D(res *Resource, desc *DEPTH_STENCIL_VIEW_DESC_TEX2D) (*DepthStencilView, error) + func (d *Device) CreateInputLayout(descs []INPUT_ELEMENT_DESC, bytecode []byte) (*InputLayout, error) + func (d *Device) CreatePixelShader(bytecode []byte) (*PixelShader, error) + func (d *Device) CreateRasterizerState(desc *RASTERIZER_DESC) (*RasterizerState, error) + func (d *Device) CreateRenderTargetView(res *Resource) (*RenderTargetView, error) + func (d *Device) CreateSamplerState(desc *SAMPLER_DESC) (*SamplerState, error) + func (d *Device) CreateShaderResourceView(res *Resource, desc unsafe.Pointer) (*ShaderResourceView, error) + func (d *Device) CreateTexture2D(desc *TEXTURE2D_DESC) (*Texture2D, error) + func (d *Device) CreateUnorderedAccessView(res *Resource, desc unsafe.Pointer) (*UnorderedAccessView, error) + func (d *Device) CreateVertexShader(bytecode []byte) (*VertexShader, error) + func (d *Device) GetFeatureLevel() int + func (d *Device) GetImmediateContext() *DeviceContext + func (d *Device) ReportLiveDeviceObjects() error + type DeviceContext struct — windows/amd64 + Vtbl ... + func (c *DeviceContext) CSSetShader(s *ComputeShader) + func (c *DeviceContext) CSSetShaderResources(startSlot uint32, s *ShaderResourceView) + func (c *DeviceContext) CSSetUnorderedAccessViews(startSlot uint32, v *UnorderedAccessView) + func (c *DeviceContext) ClearDepthStencilView(target *DepthStencilView, flags uint32, depth float32, stencil uint8) + func (c *DeviceContext) ClearRenderTargetView(target *RenderTargetView, color *[4]float32) + func (c *DeviceContext) CopySubresourceRegion(dst *Resource, dstSubresource, dstX, dstY, dstZ uint32, src *Resource, ...) + func (c *DeviceContext) Dispatch(x, y, z uint32) + func (c *DeviceContext) Draw(count, start uint32) + func (c *DeviceContext) DrawIndexed(count, start uint32, base int32) + func (c *DeviceContext) GenerateMips(res *ShaderResourceView) + func (c *DeviceContext) IASetIndexBuffer(buf *Buffer, format, offset uint32) + func (c *DeviceContext) IASetInputLayout(layout *InputLayout) + func (c *DeviceContext) IASetPrimitiveTopology(mode uint32) + func (c *DeviceContext) IASetVertexBuffers(buf *Buffer, stride, offset uint32) + func (c *DeviceContext) Map(resource *Resource, subResource, mapType, mapFlags uint32) (MAPPED_SUBRESOURCE, error) + func (c *DeviceContext) OMGetRenderTargets() (*RenderTargetView, *DepthStencilView) + func (c *DeviceContext) OMSetBlendState(state *BlendState, factor *f32color.RGBA, sampleMask uint32) + func (c *DeviceContext) OMSetDepthStencilState(state *DepthStencilState, stencilRef uint32) + func (c *DeviceContext) OMSetRenderTargets(target *RenderTargetView, depthStencil *DepthStencilView) + func (c *DeviceContext) PSSetConstantBuffers(b *Buffer) + func (c *DeviceContext) PSSetSamplers(startSlot uint32, s *SamplerState) + func (c *DeviceContext) PSSetShader(s *PixelShader) + func (c *DeviceContext) PSSetShaderResources(startSlot uint32, s *ShaderResourceView) + func (c *DeviceContext) RSSetState(state *RasterizerState) + func (c *DeviceContext) RSSetViewports(viewport *VIEWPORT) + func (c *DeviceContext) Unmap(resource *Resource, subResource uint32) + func (c *DeviceContext) UpdateSubresource(res *Resource, dstBox *BOX, rowPitch, depthPitch uint32, data []byte) + func (c *DeviceContext) VSSetConstantBuffers(b *Buffer) + func (c *DeviceContext) VSSetShader(s *VertexShader) + type ErrorCode struct — windows/amd64 + Code uint32 + Name string + func (e ErrorCode) Error() string + type GUID struct — windows/amd64 + Data1 uint32 + Data2 uint16 + Data3 uint16 + Data4_0 uint8 + Data4_1 uint8 + Data4_2 uint8 + Data4_3 uint8 + Data4_4 uint8 + Data4_5 uint8 + Data4_6 uint8 + Data4_7 uint8 + type IDXGIAdapter struct — windows/amd64 + Vtbl ... + type IDXGIDebug struct — windows/amd64 + Vtbl ... + func DXGIGetDebugInterface1() (*IDXGIDebug, error) + func (d *IDXGIDebug) ReportLiveObjects(guid *GUID, flags uint32) + type IDXGIDevice struct — windows/amd64 + Vtbl ... + func (d *IDXGIDevice) GetAdapter() (*IDXGIAdapter, error) + type IDXGIFactory struct — windows/amd64 + Vtbl ... + func (d *IDXGIFactory) CreateSwapChain(device *IUnknown, desc *DXGI_SWAP_CHAIN_DESC) (*IDXGISwapChain, error) + type IDXGIObject struct — windows/amd64 + Vtbl ... + func (d *IDXGIObject) GetParent(guid *GUID) (*IDXGIObject, error) + type IDXGISwapChain struct — windows/amd64 + Vtbl ... + func CreateSwapChain(dev *Device, hwnd windows.Handle) (*IDXGISwapChain, error) + func (s *IDXGISwapChain) GetBuffer(index int, riid *GUID) (*IUnknown, error) + func (s *IDXGISwapChain) GetDesc() (DXGI_SWAP_CHAIN_DESC, error) + func (s *IDXGISwapChain) Present(SyncInterval int, Flags uint32) error + func (s *IDXGISwapChain) ResizeBuffers(buffers, width, height, newFormat, flags uint32) error + type INPUT_ELEMENT_DESC struct — windows/amd64 + AlignedByteOffset uint32 + Format uint32 + InputSlot uint32 + InputSlotClass uint32 + InstanceDataStepRate uint32 + SemanticIndex uint32 + SemanticName *byte + type IUnknown struct — windows/amd64 + Vtbl ... + func IUnknownQueryInterface(obj unsafe.Pointer, queryInterfaceMethod uintptr, guid *GUID) (*IUnknown, error) + type InputLayout struct — windows/amd64 + Vtbl ... + type MAPPED_SUBRESOURCE struct — windows/amd64 + DepthPitch uint32 + PData uintptr + RowPitch uint32 + type PixelShader struct — windows/amd64 + Vtbl ... + type RASTERIZER_DESC struct — windows/amd64 + AntialiasedLineEnable uint32 + CullMode uint32 + DepthBias int32 + DepthBiasClamp float32 + DepthClipEnable uint32 + FillMode uint32 + FrontCounterClockwise uint32 + MultisampleEnable uint32 + ScissorEnable uint32 + SlopeScaledDepthBias float32 + type RENDER_TARGET_BLEND_DESC struct — windows/amd64 + BlendEnable uint32 + BlendOp uint32 + BlendOpAlpha uint32 + DestBlend uint32 + DestBlendAlpha uint32 + RenderTargetWriteMask uint8 + SrcBlend uint32 + SrcBlendAlpha uint32 + type RasterizerState struct — windows/amd64 + Vtbl ... + type RenderTargetView struct — windows/amd64 + Vtbl ... + type Resource struct — windows/amd64 + Vtbl ... + type SAMPLER_DESC struct — windows/amd64 + AddressU uint32 + AddressV uint32 + AddressW uint32 + BorderColor [4]float32 + ComparisonFunc uint32 + Filter uint32 + MaxAnisotropy uint32 + MaxLOD float32 + MinLOD float32 + MipLODBias float32 + type SHADER_RESOURCE_VIEW_DESC struct — windows/amd64 + Format uint32 + ViewDimension uint32 + type SHADER_RESOURCE_VIEW_DESC_BUFFEREX struct — windows/amd64 + Buffer BUFFEREX_SRV + type SHADER_RESOURCE_VIEW_DESC_TEX2D struct — windows/amd64 + Texture2D TEX2D_SRV + type SUBRESOURCE_DATA struct — windows/amd64 + type SamplerState struct — windows/amd64 + Vtbl ... + type ShaderResourceView struct — windows/amd64 + Vtbl ... + type TEX2D_DSV struct — windows/amd64 + MipSlice uint32 + type TEX2D_SRV struct — windows/amd64 + MipLevels uint32 + MostDetailedMip uint32 + type TEX2D_UAV struct — windows/amd64 + MipSlice uint32 + type TEXTURE2D_DESC struct — windows/amd64 + ArraySize uint32 + BindFlags uint32 + CPUAccessFlags uint32 + Format uint32 + Height uint32 + MipLevels uint32 + MiscFlags uint32 + SampleDesc DXGI_SAMPLE_DESC + Usage uint32 + Width uint32 + type Texture2D struct — windows/amd64 + Vtbl ... + type UNORDERED_ACCESS_VIEW_DESC struct — windows/amd64 + Format uint32 + ViewDimension uint32 + type UNORDERED_ACCESS_VIEW_DESC_BUFFER struct — windows/amd64 + Buffer BUFFER_UAV + type UNORDERED_ACCESS_VIEW_DESC_TEX2D struct — windows/amd64 + Texture2D TEX2D_UAV + type UnorderedAccessView struct — windows/amd64 + Vtbl ... + type VIEWPORT struct — windows/amd64 + Height float32 + MaxDepth float32 + MinDepth float32 + TopLeftX float32 + TopLeftY float32 + Width float32 + type VertexShader struct — windows/amd64 + Vtbl ...