123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- /** @hidden */
- export enum ExtensionName {
- DepthClamping = "depth-clamping",
- Depth24UnormStencil8 = "depth24unorm-stencil8",
- Depth32FloatStencil8 = "depth32float-stencil8",
- PipelineStatisticsQuery = "pipeline-statistics-query",
- TextureCompressionBC = "texture-compression-bc",
- TimestampQuery = "timestamp-query"
- }
- /** @hidden */
- export enum AddressMode {
- ClampToEdge = "clamp-to-edge",
- Repeat = "repeat",
- MirrorRepeat = "mirror-repeat"
- }
- /** @hidden */
- export enum BindingType {
- UniformBuffer = "uniform-buffer",
- StorageBuffer = "storage-buffer",
- ReadonlyStorageBuffer = "readonly-storage-buffer",
- Sampler = "sampler",
- ComparisonSampler = "comparison-sampler",
- SampledTexture = "sampled-texture",
- ReadonlyStorageTexture = "readonly-storage-texture",
- WriteonlyStorageTexture = "writeonly-storage-texture"
- }
- /** @hidden */
- export enum BlendFactor {
- Zero = "zero",
- One = "one",
- SrcColor = "src-color",
- OneMinusSrcColor = "one-minus-src-color",
- SrcAlpha = "src-alpha",
- OneMinusSrcAlpha = "one-minus-src-alpha",
- DstColor = "dst-color",
- OneMinusDstColor = "one-minus-dst-color",
- DstAlpha = "dst-alpha",
- OneMinusDstAlpha = "one-minus-dst-alpha",
- SrcAlphaSaturated = "src-alpha-saturated",
- BlendColor = "blend-color",
- OneMinusBlendColor = "one-minus-blend-color"
- }
- /** @hidden */
- export enum BlendOperation {
- Add = "add",
- Subtract = "subtract",
- ReverseSubtract = "reverse-subtract",
- Min = "min",
- Max = "max"
- }
- /** @hidden */
- export enum CompareFunction {
- Never = "never",
- Less = "less",
- Equal = "equal",
- LessEqual = "less-equal",
- Greater = "greater",
- NotEqual = "not-equal",
- GreaterEqual = "greater-equal",
- Always = "always"
- }
- /** @hidden */
- export enum CullMode {
- None = "none",
- Front = "front",
- Back = "back"
- }
- /** @hidden */
- export enum FilterMode {
- Nearest = "nearest",
- Linear = "linear"
- }
- /** @hidden */
- export enum FrontFace {
- CCW = "ccw",
- CW = "cw"
- }
- /** @hidden */
- export enum IndexFormat {
- Uint16 = "uint16",
- Uint32 = "uint32"
- }
- /** @hidden */
- export enum InputStepMode {
- Vertex = "vertex",
- Instance = "instance"
- }
- /** @hidden */
- export enum LoadOp {
- Load = "load"
- }
- /** @hidden */
- export enum PrimitiveTopology {
- PointList = "point-list",
- LineList = "line-list",
- LineStrip = "line-strip",
- TriangleList = "triangle-list",
- TriangleStrip = "triangle-strip"
- }
- /** @hidden */
- export enum StencilOperation {
- Keep = "keep",
- Zero = "zero",
- Replace = "replace",
- Invert = "invert",
- IncrementClamp = "increment-clamp",
- DecrementClamp = "decrement-clamp",
- IncrementWrap = "increment-wrap",
- DecrementWrap = "decrement-wrap"
- }
- /** @hidden */
- export enum StoreOp {
- Store = "store",
- Clear = "clear"
- }
- /** @hidden */
- export enum TextureDimension {
- E1d = "1d",
- E2d = "2d",
- E3d = "3d"
- }
- /** @hidden */
- export enum TextureFormat {
- // 8-bit formats
- R8Unorm = "r8unorm",
- R8Snorm = "r8snorm",
- R8Uint = "r8uint",
- R8Sint = "r8sint",
- // 16-bit formats
- R16Uint = "r16uint",
- R16Sint = "r16sint",
- R16Float = "r16float",
- RG8Unorm = "rg8unorm",
- RG8Snorm = "rg8snorm",
- RG8Uint = "rg8uint",
- RG8Sint = "rg8sint",
- // 32-bit formats
- R32Uint = "r32uint",
- R32Sint = "r32sint",
- R32Float = "r32float",
- RG16Uint = "rg16uint",
- RG16Sint = "rg16sint",
- RG16Float = "rg16float",
- RGBA8Unorm = "rgba8unorm",
- RGBA8UnormSRGB = "rgba8unorm-srgb",
- RGBA8Snorm = "rgba8snorm",
- RGBA8Uint = "rgba8uint",
- RGBA8Sint = "rgba8sint",
- BGRA8Unorm = "bgra8unorm",
- BGRA8UnormSRGB = "bgra8unorm-srgb",
- // Packed 32-bit formats
- RGB9E5UFloat = "rgb9e5ufloat",
- RGB10A2Unorm = "rgb10a2unorm",
- RG11B10UFloat = "rg11b10ufloat",
- // 64-bit formats
- RG32Uint = "rg32uint",
- RG32Sint = "rg32sint",
- RG32Float = "rg32float",
- RGBA16Uint = "rgba16uint",
- RGBA16Sint = "rgba16sint",
- RGBA16Float = "rgba16float",
- // 128-bit formats
- RGBA32Uint = "rgba32uint",
- RGBA32Sint = "rgba32sint",
- RGBA32Float = "rgba32float",
- // Depth and stencil formats
- Stencil8 = "stencil8",
- Depth16Unorm = "depth16unorm",
- Depth24Plus = "depth24plus",
- Depth24PlusStencil8 = "depth24plus-stencil8",
- Depth32Float = "depth32float",
- // BC compressed formats usable if "texture-compression-bc" is both
- // supported by the device/user agent and enabled in requestDevice.
- BC1RGBAUNorm = "bc1-rgba-unorm",
- BC1RGBAUnormSRGB = "bc1-rgba-unorm-srgb",
- BC2RGBAUnorm = "bc2-rgba-unorm",
- BC2RGBAUnormSRGB = "bc2-rgba-unorm-srgb",
- BC3RGBAUnorm = "bc3-rgba-unorm",
- BC3RGBAUnormSRGB = "bc3-rgba-unorm-srgb",
- BC4RUnorm = "bc4-r-unorm",
- BC4RSnorm = "bc4-r-snorm",
- BC5RGUnorm = "bc5-rg-unorm",
- BC5RGSnorm = "bc5-rg-snorm",
- BC6HRGBUFloat = "bc6h-rgb-ufloat",
- BC6HRGBFloat = "bc6h-rgb-float",
- BC7RGBAUnorm = "bc7-rgba-unorm",
- BC7RGBAUnormSRGB = "bc7-rgba-unorm-srgb",
- // "depth24unorm-stencil8" feature
- Depth24UnormStencil8 = "depth24unorm-stencil8",
- // "depth32float-stencil8" feature
- Depth32FloatStencil8 = "depth32float-stencil8"
- }
- /** @hidden */
- export enum TextureComponentType {
- Float = "float",
- Sint = "sint",
- Uint = "uint",
- // Texture is used with comparison sampling only.
- DepthComparison = "depth-comparison"
- }
- /** @hidden */
- export enum TextureViewDimension {
- E1d = "1d",
- E2d = "2d",
- E2dArray = "2d-array",
- Cube = "cube",
- CubeArray = "cube-array",
- E3d = "3d"
- }
- /** @hidden */
- export enum VertexFormat {
- Uchar2 = "uchar2",
- Uchar4 = "uchar4",
- Char2 = "char2",
- Char4 = "char4",
- Uchar2Norm = "uchar2norm",
- Uchar4Norm = "uchar4norm",
- Char2Norm = "char2norm",
- Char4Norm = "char4norm",
- Ushort2 = "ushort2",
- Ushort4 = "ushort4",
- Short2 = "short2",
- Short4 = "short4",
- Ushort2Norm = "ushort2norm",
- Ushort4Norm = "ushort4norm",
- Short2Norm = "short2norm",
- Short4Norm = "short4norm",
- Half2 = "half2",
- Half4 = "half4",
- Float = "float",
- Float2 = "float2",
- Float3 = "float3",
- Float4 = "float4",
- Uint = "uint",
- Uint2 = "uint2",
- Uint3 = "uint3",
- Uint4 = "uint4",
- Int = "int",
- Int2 = "int2",
- Int3 = "int3",
- Int4 = "int4"
- }
- /** @hidden */
- export enum TextureAspect {
- All = "all",
- StencilOnly = "stencil-only",
- DepthOnly = "depth-only"
- }
- /** @hidden */
- export enum CompilationMessageType {
- Error = "error",
- Warning = "warning",
- Info = "info"
- }
- /** @hidden */
- export enum QueryType {
- Occlusion = "occlusion"
- }
- /** @hidden */
- export enum BufferUsage {
- MapRead = 1,
- MapWrite = 2,
- CopySrc = 4,
- CopyDst = 8,
- Index = 16,
- Vertex = 32,
- Uniform = 64,
- Storage = 128,
- Indirect = 256,
- QueryResolve = 512
- }
- /** @hidden */
- export enum ColorWrite {
- Red = 1,
- Green = 2,
- Blue = 4,
- Alpha = 8,
- All = 15
- }
- /** @hidden */
- export enum ShaderStage {
- Vertex = 1,
- Fragment = 2,
- Compute = 4
- }
- /** @hidden */
- export enum TextureUsage {
- CopySrc = 1,
- CopyDst = 2,
- Sampled = 4,
- Storage = 8,
- OutputAttachment = 16
- }
- /** @hidden */
- export enum MapMode {
- Read = 1,
- Write = 2
- }
|