Options
All
  • Public
  • Public/Protected
  • All
Menu

Module gfx

Index

References

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

References

API

Re-exports API

Address

Re-exports Address

Attribute

Re-exports Attribute

AttributeName

Re-exports AttributeName

BindingMappingInfo

Re-exports BindingMappingInfo

BlendFactor

Re-exports BlendFactor

BlendOp

Re-exports BlendOp

BlendState

Re-exports BlendState

BlendTarget

Re-exports BlendTarget

Buffer

Re-exports Buffer

BufferAccess

Re-exports BufferAccess

BufferAccessBit

Re-exports BufferAccessBit

BufferFlagBit

Re-exports BufferFlagBit

BufferFlags

Re-exports BufferFlags

BufferInfo

Re-exports BufferInfo

BufferSource

Re-exports BufferSource

BufferTextureCopy

Re-exports BufferTextureCopy

BufferUsage

Re-exports BufferUsage

BufferUsageBit

Re-exports BufferUsageBit

BufferViewInfo

Re-exports BufferViewInfo

ClearFlag

Re-exports ClearFlag

Color

Re-exports Color

ColorAttachment

Re-exports ColorAttachment

ColorMask

Re-exports ColorMask

CommandBuffer

Re-exports CommandBuffer

CommandBufferInfo

Re-exports CommandBufferInfo

CommandBufferType

Re-exports CommandBufferType

ComparisonFunc

Re-exports ComparisonFunc

CullMode

Re-exports CullMode

DESCRIPTOR_BUFFER_TYPE

Re-exports DESCRIPTOR_BUFFER_TYPE

DESCRIPTOR_DYNAMIC_TYPE

Re-exports DESCRIPTOR_DYNAMIC_TYPE

DESCRIPTOR_SAMPLER_TYPE

Re-exports DESCRIPTOR_SAMPLER_TYPE

DRAW_INFO_SIZE

Re-exports DRAW_INFO_SIZE

DepthStencilAttachment

Re-exports DepthStencilAttachment

DepthStencilState

Re-exports DepthStencilState

DescriptorSet

Re-exports DescriptorSet

DescriptorSetInfo

Re-exports DescriptorSetInfo

DescriptorSetLayout

Re-exports DescriptorSetLayout

DescriptorSetLayoutBinding

Re-exports DescriptorSetLayoutBinding

DescriptorSetLayoutInfo

Re-exports DescriptorSetLayoutInfo

DescriptorType

Re-exports DescriptorType

Device

Re-exports Device

DeviceInfo

Re-exports DeviceInfo

DrawInfo

Re-exports DrawInfo

DynamicStateFlagBit

Re-exports DynamicStateFlagBit

DynamicStateFlags

Re-exports DynamicStateFlags

Extent

Re-exports Extent

Feature

Re-exports Feature

Fence

Re-exports Fence

FenceInfo

Re-exports FenceInfo

Filter

Re-exports Filter

Format

Re-exports Format

FormatInfo

Re-exports FormatInfo

FormatInfos

Re-exports FormatInfos

FormatSize

Re-exports FormatSize

FormatSurfaceSize

Re-exports FormatSurfaceSize

FormatType

Re-exports FormatType

Framebuffer

Re-exports Framebuffer

FramebufferInfo

Re-exports FramebufferInfo

GetTypeSize

Re-exports GetTypeSize

IAttribute

Re-exports IAttribute

IShaderStage

Re-exports IShaderStage

IUniform

Re-exports IUniform

IndirectBuffer

Re-exports IndirectBuffer

InputAssembler

Re-exports InputAssembler

InputAssemblerInfo

Re-exports InputAssemblerInfo

InputState

Re-exports InputState

IsPowerOf2

Re-exports IsPowerOf2

LoadOp

Re-exports LoadOp

MAX_ATTACHMENTS

Re-exports MAX_ATTACHMENTS

MemoryStatus

Re-exports MemoryStatus

MemoryUsage

Re-exports MemoryUsage

MemoryUsageBit

Re-exports MemoryUsageBit

Obj

Re-exports Obj

ObjectType

Re-exports ObjectType

Offset

Re-exports Offset

PipelineBindPoint

Re-exports PipelineBindPoint

PipelineLayout

Re-exports PipelineLayout

PipelineLayoutInfo

Re-exports PipelineLayoutInfo

PipelineState

Re-exports PipelineState

PipelineStateInfo

Re-exports PipelineStateInfo

PolygonMode

Re-exports PolygonMode

PrimitiveMode

Re-exports PrimitiveMode

Queue

Re-exports Queue

QueueInfo

Re-exports QueueInfo

QueueType

Re-exports QueueType

RasterizerState

Re-exports RasterizerState

Rect

Re-exports Rect

RenderPass

Re-exports RenderPass

RenderPassInfo

Re-exports RenderPassInfo

SampleCount

Re-exports SampleCount

Sampler

Re-exports Sampler

SamplerInfo

Re-exports SamplerInfo

ShadeModel

Re-exports ShadeModel

Shader

Re-exports Shader

ShaderInfo

Re-exports ShaderInfo

ShaderStage

Re-exports ShaderStage

ShaderStageFlagBit

Re-exports ShaderStageFlagBit

ShaderStageFlags

Re-exports ShaderStageFlags

StencilFace

Re-exports StencilFace

StencilOp

Re-exports StencilOp

StoreOp

Re-exports StoreOp

SubPassInfo

Re-exports SubPassInfo

SurfaceTransform

Re-exports SurfaceTransform

Texture

Re-exports Texture

TextureCopy

Re-exports TextureCopy

TextureFlagBit

Re-exports TextureFlagBit

TextureFlags

Re-exports TextureFlags

TextureInfo

Re-exports TextureInfo

TextureLayout

Re-exports TextureLayout

TextureSubres

Re-exports TextureSubres

TextureType

Re-exports TextureType

TextureUsage

Re-exports TextureUsage

TextureUsageBit

Re-exports TextureUsageBit

TextureViewInfo

Re-exports TextureViewInfo

Type

Re-exports Type

Uniform

Re-exports Uniform

UniformBlock

Re-exports UniformBlock

UniformSampler

Re-exports UniformSampler

Viewport

Re-exports Viewport

getTypedArrayConstructor

Re-exports getTypedArrayConstructor

Type aliases

BufferAccess

BufferAccess: BufferAccessBit

BufferFlags

BufferFlags: BufferFlagBit

BufferSource

BufferSource: ArrayBuffer | IndirectBuffer

BufferUsage

BufferUsage: BufferUsageBit

DynamicStateFlags

DynamicStateFlags: DynamicStateFlagBit

MemoryUsage

MemoryUsage: MemoryUsageBit

ShaderStageFlags

ShaderStageFlags: ShaderStageFlagBit

TextureFlags

TextureFlags: TextureFlagBit

TextureUsage

TextureUsage: TextureUsageBit

Variables

Const DESCRIPTOR_BUFFER_TYPE

DESCRIPTOR_BUFFER_TYPE: number = DescriptorType.UNIFORM_BUFFER | DescriptorType.DYNAMIC_UNIFORM_BUFFER| DescriptorType.STORAGE_BUFFER | DescriptorType.DYNAMIC_STORAGE_BUFFER

Const DESCRIPTOR_DYNAMIC_TYPE

DESCRIPTOR_DYNAMIC_TYPE: number = DescriptorType.DYNAMIC_STORAGE_BUFFER | DescriptorType.DYNAMIC_UNIFORM_BUFFER

Const DESCRIPTOR_SAMPLER_TYPE

DESCRIPTOR_SAMPLER_TYPE: SAMPLER = DescriptorType.SAMPLER

Const DRAW_INFO_SIZE

DRAW_INFO_SIZE: 28 = 28

Const FormatInfos

FormatInfos: ReadonlyArray<FormatInfo> = Object.freeze([new FormatInfo('UNKNOWN', 0, 0, FormatType.NONE, false, false, false, false),new FormatInfo('A8', 1, 1, FormatType.UNORM, true, false, false, false),new FormatInfo('L8', 1, 1, FormatType.UNORM, false, false, false, false),new FormatInfo('LA8', 1, 2, FormatType.UNORM, true, false, false, false),new FormatInfo('R8', 1, 1, FormatType.UNORM, false, false, false, false),new FormatInfo('R8SN', 1, 1, FormatType.SNORM, false, false, false, false),new FormatInfo('R8UI', 1, 1, FormatType.UINT, false, false, false, false),new FormatInfo('R8I', 1, 1, FormatType.INT, false, false, false, false),new FormatInfo('R16F', 2, 1, FormatType.FLOAT, false, false, false, false),new FormatInfo('R16UI', 2, 1, FormatType.UINT, false, false, false, false),new FormatInfo('R16I', 2, 1, FormatType.INT, false, false, false, false),new FormatInfo('R32F', 4, 1, FormatType.FLOAT, false, false, false, false),new FormatInfo('R32UI', 4, 1, FormatType.UINT, false, false, false, false),new FormatInfo('R32I', 4, 1, FormatType.INT, false, false, false, false),new FormatInfo('RG8', 2, 2, FormatType.UNORM, false, false, false, false),new FormatInfo('RG8SN', 2, 2, FormatType.SNORM, false, false, false, false),new FormatInfo('RG8UI', 2, 2, FormatType.UINT, false, false, false, false),new FormatInfo('RG8I', 2, 2, FormatType.INT, false, false, false, false),new FormatInfo('RG16F', 4, 2, FormatType.FLOAT, false, false, false, false),new FormatInfo('RG16UI', 4, 2, FormatType.UINT, false, false, false, false),new FormatInfo('RG16I', 4, 2, FormatType.INT, false, false, false, false),new FormatInfo('RG32F', 8, 2, FormatType.FLOAT, false, false, false, false),new FormatInfo('RG32UI', 8, 2, FormatType.UINT, false, false, false, false),new FormatInfo('RG32I', 8, 2, FormatType.INT, false, false, false, false),new FormatInfo('RGB8', 3, 3, FormatType.UNORM, false, false, false, false),new FormatInfo('SRGB8', 3, 3, FormatType.UNORM, false, false, false, false),new FormatInfo('RGB8SN', 3, 3, FormatType.SNORM, false, false, false, false),new FormatInfo('RGB8UI', 3, 3, FormatType.UINT, false, false, false, false),new FormatInfo('RGB8I', 3, 3, FormatType.INT, false, false, false, false),new FormatInfo('RGB16F', 6, 3, FormatType.FLOAT, false, false, false, false),new FormatInfo('RGB16UI', 6, 3, FormatType.UINT, false, false, false, false),new FormatInfo('RGB16I', 6, 3, FormatType.INT, false, false, false, false),new FormatInfo('RGB32F', 12, 3, FormatType.FLOAT, false, false, false, false),new FormatInfo('RGB32UI', 12, 3, FormatType.UINT, false, false, false, false),new FormatInfo('RGB32I', 12, 3, FormatType.INT, false, false, false, false),new FormatInfo('RGBA8', 4, 4, FormatType.UNORM, true, false, false, false),new FormatInfo('BGRA8', 4, 4, FormatType.UNORM, true, false, false, false),new FormatInfo('SRGB8_A8', 4, 4, FormatType.UNORM, true, false, false, false),new FormatInfo('RGBA8SN', 4, 4, FormatType.SNORM, true, false, false, false),new FormatInfo('RGBA8UI', 4, 4, FormatType.UINT, true, false, false, false),new FormatInfo('RGBA8I', 4, 4, FormatType.INT, true, false, false, false),new FormatInfo('RGBA16F', 8, 4, FormatType.FLOAT, true, false, false, false),new FormatInfo('RGBA16UI', 8, 4, FormatType.UINT, true, false, false, false),new FormatInfo('RGBA16I', 8, 4, FormatType.INT, true, false, false, false),new FormatInfo('RGBA32F', 16, 4, FormatType.FLOAT, true, false, false, false),new FormatInfo('RGBA32UI', 16, 4, FormatType.UINT, true, false, false, false),new FormatInfo('RGBA32I', 16, 4, FormatType.INT, true, false, false, false),new FormatInfo('R5G6B5', 2, 3, FormatType.UNORM, false, false, false, false),new FormatInfo('R11G11B10F', 4, 3, FormatType.FLOAT, false, false, false, false),new FormatInfo('RGB5A1', 2, 4, FormatType.UNORM, true, false, false, false),new FormatInfo('RGBA4', 2, 4, FormatType.UNORM, true, false, false, false),new FormatInfo('RGB10A2', 2, 4, FormatType.UNORM, true, false, false, false),new FormatInfo('RGB10A2UI', 2, 4, FormatType.UINT, true, false, false, false),new FormatInfo('RGB9E5', 2, 4, FormatType.FLOAT, true, false, false, false),new FormatInfo('D16', 2, 1, FormatType.UINT, false, true, false, false),new FormatInfo('D16S8', 3, 2, FormatType.UINT, false, true, true, false),new FormatInfo('D24', 3, 1, FormatType.UINT, false, true, false, false),new FormatInfo('D24S8', 4, 2, FormatType.UINT, false, true, true, false),new FormatInfo('D32F', 4, 1, FormatType.FLOAT, false, true, false, false),new FormatInfo('D32FS8', 5, 2, FormatType.FLOAT, false, true, true, false),new FormatInfo('BC1', 1, 3, FormatType.UNORM, false, false, false, true),new FormatInfo('BC1_ALPHA', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('BC1_SRGB', 1, 3, FormatType.UNORM, false, false, false, true),new FormatInfo('BC1_SRGB_ALPHA', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('BC2', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('BC2_SRGB', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('BC3', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('BC3_SRGB', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('BC4', 1, 1, FormatType.UNORM, false, false, false, true),new FormatInfo('BC4_SNORM', 1, 1, FormatType.SNORM, false, false, false, true),new FormatInfo('BC5', 1, 2, FormatType.UNORM, false, false, false, true),new FormatInfo('BC5_SNORM', 1, 2, FormatType.SNORM, false, false, false, true),new FormatInfo('BC6H_UF16', 1, 3, FormatType.UFLOAT, false, false, false, true),new FormatInfo('BC6H_SF16', 1, 3, FormatType.FLOAT, false, false, false, true),new FormatInfo('BC7', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('BC7_SRGB', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ETC_RGB8', 1, 3, FormatType.UNORM, false, false, false, true),new FormatInfo('ETC2_RGB8', 1, 3, FormatType.UNORM, false, false, false, true),new FormatInfo('ETC2_SRGB8', 1, 3, FormatType.UNORM, false, false, false, true),new FormatInfo('ETC2_RGB8_A1', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ETC2_SRGB8_A1', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ETC2_RGBA8', 2, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ETC2_SRGB8_A8', 2, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('EAC_R11', 1, 1, FormatType.UNORM, false, false, false, true),new FormatInfo('EAC_R11SN', 1, 1, FormatType.SNORM, false, false, false, true),new FormatInfo('EAC_RG11', 2, 2, FormatType.UNORM, false, false, false, true),new FormatInfo('EAC_RG11SN', 2, 2, FormatType.SNORM, false, false, false, true),new FormatInfo('PVRTC_RGB2', 2, 3, FormatType.UNORM, false, false, false, true),new FormatInfo('PVRTC_RGBA2', 2, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('PVRTC_RGB4', 2, 3, FormatType.UNORM, false, false, false, true),new FormatInfo('PVRTC_RGBA4', 2, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('PVRTC2_2BPP', 2, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('PVRTC2_4BPP', 2, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_4x4', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_5x4', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_5x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_6x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_6x6', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_8x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_8x6', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_8x8', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_10x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_10x6', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_10x8', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_10x10', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_12x10', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_RGBA_12x12', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_4x4', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_5x4', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_5x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_6x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_6x6', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_8x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_8x6', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_8x8', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_10x5', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_10x6', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_10x8', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_10x10', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_12x10', 1, 4, FormatType.UNORM, true, false, false, true),new FormatInfo('ASTC_SRGBA_12x12', 1, 4, FormatType.UNORM, true, false, false, true),])

Const MAX_ATTACHMENTS

MAX_ATTACHMENTS: 4 = 4

Const _type2size

_type2size: number[] = [0, // UNKNOWN4, // BOOL8, // BOOL212, // BOOL316, // BOOL44, // INT8, // INT212, // INT316, // INT44, // UINT8, // UINT212, // UINT316, // UINT44, // FLOAT8, // FLOAT212, // FLOAT316, // FLOAT416, // MAT224, // MAT2X332, // MAT2X424, // MAT3X236, // MAT348, // MAT3X432, // MAT4X248, // MAT4X364, // MAT44, // SAMPLER1D4, // SAMPLER1D_ARRAY4, // SAMPLER2D4, // SAMPLER2D_ARRAY4, // SAMPLER3D4, // SAMPLER_CUBE]

Functions

FormatSize

  • FormatSize(format: Format, width: number, height: number, depth: number): number
  • 获取指定格式对应的内存大小。

    Parameters

    • format: Format

      The target format.

    • width: number

      The target width.

    • height: number

      The target height.

    • depth: number

      The target depth.

    Returns number

FormatSurfaceSize

  • FormatSurfaceSize(format: Format, width: number, height: number, depth: number, mips: number): number
  • GFX 格式表面内存大小。

    Parameters

    • format: Format

      The target format.

    • width: number

      The target width.

    • height: number

      The target height.

    • depth: number

      The target depth.

    • mips: number

      The target mip levels.

    Returns number

GetTypeSize

  • GetTypeSize(type: Type): number

IsPowerOf2

  • IsPowerOf2(x: number): boolean

getTypedArrayConstructor

  • getTypedArrayConstructor(info: FormatInfo): TypedArrayConstructor

Generated using TypeDoc