repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
DerSchmale/spirv4web
build/types/common/ValueSaver.d.ts
<gh_stars>0 export declare class ValueSaver<T> { private targetObject; private propName; private saved; constructor(targetObject: any, propName: string); get current(): T; set current(value: T); release(): void; }
DerSchmale/spirv4web
src/utils/util.ts
import { Compiler } from "../compiler/Compiler"; import { Resource } from "../compiler/ShaderResources"; import { SPIRBaseType } from "../common/SPIRType"; import { Decoration } from "../spirv/Decoration"; export function rename_interface_variable(compiler: Compiler, resources: Resource[], location: number, name: stri...
DerSchmale/spirv4web
build/types/compiler/glsl/CompilerGLSL.d.ts
import { Compiler } from "../Compiler"; import { ParsedIR } from "../../parser/ParsedIR"; import { LocationComponentPair } from "../../common/LocationComponentPair"; import { Pair } from "../../utils/Pair"; import { SPIRVariable } from "../../common/SPIRVariable"; import { SPIRBaseType, SPIRType } from "../../common/SP...
DerSchmale/spirv4web
build/types/utils/Pointer.d.ts
<gh_stars>0 export declare class Pointer<T> { private value; constructor(value?: T); get(): T; set(value: T): void; } export declare class MemberPointer<A, B> { private owner; private propName; constructor(owner: A, propName: string); get(): B; set(value: B): void; }
DerSchmale/spirv4web
src/common/Instruction.ts
<filename>src/common/Instruction.ts<gh_stars>0 export class Instruction { op: number = 0; count: number = 0; // If offset is 0 (not a valid offset into the instruction stream), // we have an instruction stream which is embedded in the object. offset: number = 0; length: number = 0; is_embed...
DerSchmale/spirv4web
build/types/spirv/StorageClass.d.ts
<reponame>DerSchmale/spirv4web export declare enum StorageClass { UniformConstant = 0, Input = 1, Uniform = 2, Output = 3, Workgroup = 4, CrossWorkgroup = 5, Private = 6, Function = 7, Generic = 8, PushConstant = 9, AtomicCounter = 10, Image = 11, StorageBuffer = 12, ...
DerSchmale/spirv4web
src/common/ObjectPoolGroup.ts
import { Types } from "./Types"; import { ObjectPoolBase } from "../containers/ObjectPoolBase"; export class ObjectPoolGroup { pools: ObjectPoolBase[] = new Array(Types.Count); constructor() { } }
DerSchmale/spirv4web
build/types/common/SPIRFunction.d.ts
<reponame>DerSchmale/spirv4web import { IVariant } from "./IVariant"; import { Types } from "./Types"; export declare class SPIRFunctionParameter { type: TypeID; id: ID; read_count: number; write_count: number; alias_global_variable: boolean; constructor(type?: TypeID, id?: ID, read_count?: numb...
DerSchmale/spirv4web
build/types/transform.d.ts
declare function transform(data: Uint32Array, start: number, end: number, func: (e: number) => number): void;
DerSchmale/spirv4web
build/types/spirv/ImageFormat.d.ts
export declare enum ImageFormat { Unknown = 0, Rgba32f = 1, Rgba16f = 2, R32f = 3, Rgba8 = 4, Rgba8Snorm = 5, Rg32f = 6, Rg16f = 7, R11fG11fB10f = 8, R16f = 9, Rgba16 = 10, Rgb10A2 = 11, Rg16 = 12, Rg8 = 13, R16 = 14, R8 = 15, Rgba16Snorm = 16, Rg1...
DerSchmale/spirv4web
build/types/containers/ObjectPool.d.ts
import { ObjectPoolBase } from "./ObjectPoolBase"; import { AnyConstructor } from "../common/ConstructorTypes"; export declare class ObjectPool<T> extends ObjectPoolBase { private classRef; constructor(classRef: AnyConstructor<T>); allocate(...args: any[]): T; deallocate(ptr: T): void; deallocate_op...
DerSchmale/spirv4web
src/compiler/DummySamplerForCombinedImageHandler.ts
<gh_stars>0 import { Compiler } from "./Compiler"; import { OpcodeHandler } from "./OpcodeHandler"; import { SPIRType, SPIRBaseType } from "../common/SPIRType"; import { SPIRExpression } from "../common/SPIRExpression"; import { Op } from "../spirv/Op"; import { Dim } from "../spirv/Dim"; export class DummySamplerForC...
DerSchmale/spirv4web
build/types/compiler/SpecializationConstant.d.ts
export declare class SpecializationConstant { id: ConstantID; constant_id: number; }
DerSchmale/spirv4web
build/types/compiler/DummySamplerForCombinedImageHandler.d.ts
<gh_stars>0 import { Compiler } from "./Compiler"; import { OpcodeHandler } from "./OpcodeHandler"; import { Op } from "../spirv/Op"; export declare class DummySamplerForCombinedImageHandler extends OpcodeHandler { compiler: Compiler; need_dummy_sampler: boolean; constructor(compiler: Compiler); handle(...
DerSchmale/spirv4web
build/types/common/SPIRString.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; export declare class SPIRString extends IVariant { static type: Types; str: string; constructor(other: SPIRString); constructor(str: string); }
DerSchmale/spirv4web
src/main.ts
import { Args } from "./Args"; import { compile_iteration } from "./compileIteration"; import { Dict } from "./utils/Dict"; // TODO: // - Allow passing in defines that will get injected after the version tag // - Allow passing in a map constant index => macro name? // - pass in supported extensions and let the comp...
DerSchmale/spirv4web
build/types/common/common.d.ts
<reponame>DerSchmale/spirv4web<gh_stars>0 import { SPIRType, SPIRBaseType } from "./SPIRType"; import { Op } from "../spirv/Op"; export declare function type_is_floating_point(type: SPIRType): boolean; export declare function type_is_integral(type: SPIRType): boolean; export declare function opcode_is_sign_invariant(op...
DerSchmale/spirv4web
src/common/ValueSaver.ts
<reponame>DerSchmale/spirv4web<gh_stars>0 export class ValueSaver<T> { private targetObject: any; private propName: string; private saved: T; constructor(targetObject: any, propName: string) { this.saved = targetObject[propName]; this.targetObject = targetObject; this.propNa...
DerSchmale/spirv4web
src/parser/BlockMetaFlagBits.ts
<reponame>DerSchmale/spirv4web // Meta data about blocks. The cross-compiler needs to query if a block is either of these types. // It is a bitset as there can be more than one tag per block. export enum BlockMetaFlagBits { LOOP_HEADER_BIT = 1 << 0, CONTINUE_BIT = 1 << 1, LOOP_MERGE_BIT = 1 << 2, SELECT...
DerSchmale/spirv4web
src/cfg/VisitOrder.ts
<filename>src/cfg/VisitOrder.ts<gh_stars>0 export class VisitOrder { v: number = -1; get(): number { return this.v; } set(value: number) { this.v = value; } }
DerSchmale/spirv4web
build/types/common/LocationComponentPair.d.ts
export declare class LocationComponentPair { location: number; component: number; constructor(location: number, component: number); }
DerSchmale/spirv4web
src/common/common.ts
import { SPIRType, SPIRBaseType } from "./SPIRType"; import { Op } from "../spirv/Op"; export function type_is_floating_point(type: SPIRType): boolean { return type.basetype === SPIRBaseType.Half || type.basetype === SPIRBaseType.Float || type.basetype === SPIRBaseType.Double; } export function type_is_integral(t...
DerSchmale/spirv4web
src/Args.ts
import { Pair } from "./utils/Pair"; import { PlsFormat } from "./compiler/glsl/glsl"; import { ExecutionModel } from "./spirv/ExecutionModel"; import { StorageClass } from "./spirv/StorageClass"; import { BuiltIn } from "./spirv/BuiltIn"; export class Rename { old_name: string; new_name: string; execution...
DerSchmale/spirv4web
build/types/compiler/InterlockedResourceAccessPrepassHandler.d.ts
<filename>build/types/compiler/InterlockedResourceAccessPrepassHandler.d.ts import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRBlock } from "../common/SPIRBlock"; import { Op } from "../spirv/Op"; export declare class InterlockedResourceAccessPrepassHandler extends Opco...
DerSchmale/spirv4web
build/types/compiler/ActiveBuiltinHandler.d.ts
<gh_stars>0 import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { Bitset } from "../common/Bitset"; import { SPIRType } from "../common/SPIRType"; import { BuiltIn } from "../spirv/BuiltIn"; import { Op } from "../spirv/Op"; export declare class ActiveBuiltinHandler extends Op...
DerSchmale/spirv4web
build/types/utils/maplike_get.d.ts
<gh_stars>0 import { DefaultConstructor } from "../common/ConstructorTypes"; import { Dict } from "./Dict"; export declare function maplike_get<T>(classRef: DefaultConstructor<T>, map: T[] | Dict<T>, id: number | string): T; export declare function maplike_get(classRef: number, map: number[] | Dict<number>, id: number ...
DerSchmale/spirv4web
build/types/compiler/glsl/GLSLOptions.d.ts
<reponame>DerSchmale/spirv4web import { GLSLVertexOptions } from "./GLSLVertexOptions"; import { GLSLFragmentOptions } from "./GLSLFragmentOptions"; export declare class GLSLOptions { version: number; specialization_constant_prefix: string; force_temporary: boolean; separate_shader_objects: boolean; ...
DerSchmale/spirv4web
build/types/common/Instruction.d.ts
export declare class Instruction { op: number; count: number; offset: number; length: number; is_embedded(): boolean; } export declare class EmbeddedInstruction extends Instruction { ops: number[]; }
DerSchmale/spirv4web
build/types/compiler/CombinedImageSamplerHandler.d.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRFunction } from "../common/SPIRFunction"; import { Op } from "../spirv/Op"; export declare class CombinedImageSamplerHandler extends OpcodeHandler { compiler: Compiler; parameter_remapping: number[][]; funct...
DerSchmale/spirv4web
build/types/compiler/Hasher.d.ts
export declare class Hasher { private h; u32(value: number): void; get(): bigint; }
DerSchmale/spirv4web
src/utils/bigint.ts
<reponame>DerSchmale/spirv4web // high is the first parameter because this reads nicer function bigintFrom(high: number, low: number): bigint { const low_ = BigInt(low); const high_ = BigInt(high); return low_ | (high_ << BigInt(32)); }
DerSchmale/spirv4web
build/types/spirv/ImageOperandsMask.d.ts
export declare enum ImageOperandsMask { None = 0, Bias = 1, Lod = 2, Grad = 4, ConstOffset = 8, Offset = 16, ConstOffsets = 32, Sample = 64, MinLod = 128, MakeTexelAvailable = 256, MakeTexelAvailableKHR = 256, MakeTexelVisible = 512, MakeTexelVisibleKHR = 512, Non...
DerSchmale/spirv4web
src/common/TypedID.ts
<gh_stars>0 // in C++, these types are templated to prevent implicit conversion. Typescript doesn't allow this (generics using // enum values aren't possible, but we're counting on the C++ code being valid due to their type-checks, so we can // simplify this) type VariableID = number; type TypeID = number; type Constan...
DerSchmale/spirv4web
src/common/SPIREntryPoint.ts
<reponame>DerSchmale/spirv4web import { Bitset } from "./Bitset"; import { defaultClone, defaultCopy } from "../utils/defaultCopy"; import { ExecutionModel } from "../spirv/ExecutionModel"; class SPIREntryPointWorkgroupSize { x: number = 0; y: number = 0; z: number = 0; id_x: number = 0; id_y: numb...
DerSchmale/spirv4web
build/types/spirv/AccessQualifier.d.ts
export declare enum AccessQualifier { ReadOnly = 0, WriteOnly = 1, ReadWrite = 2, Max = 2147483647 }
DerSchmale/spirv4web
src/spirv/RayFlagsShift.ts
export enum RayFlagsShift { OpaqueKHR = 0, NoOpaqueKHR = 1, TerminateOnFirstHitKHR = 2, SkipClosestHitShaderKHR = 3, CullBackFacingTrianglesKHR = 4, CullFrontFacingTrianglesKHR = 5, CullOpaqueKHR = 6, CullNoOpaqueKHR = 7, SkipTrianglesKHR = 8, SkipAABBsKHR = 9, Max = 0x7fffff...
DerSchmale/spirv4web
src/spirv/FPFastMathModeShift.ts
export enum FPFastMathModeShift { NotNaN = 0, NotInf = 1, NSZ = 2, AllowRecip = 3, Fast = 4, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/spirv/FunctionParameterAttribute.ts
export enum FunctionParameterAttribute { Zext = 0, Sext = 1, ByVal = 2, Sret = 3, NoAlias = 4, NoCapture = 5, NoWrite = 6, NoReadWrite = 7, Max = 0x7fffffff, }
DerSchmale/spirv4web
build/types/spirv/FPFastMathModeMask.d.ts
export declare enum FPFastMathModeMask { None = 0, NaNMask = 1, InfMask = 2, NSZMask = 4, AllowRecipMask = 8, FastMask = 16 }
DerSchmale/spirv4web
src/utils/string.ts
<filename>src/utils/string.ts export function replaceCharAt(str: string, index: number, char: string): string { return str.substring(0, index) + char + str.substring(index + 1); } export function convert_to_string(value: any); export function convert_to_string(value: bigint, int64_type: string, long_long_literal_s...
DerSchmale/spirv4web
build/types/compiler/glsl/GLSLPrecision.d.ts
<reponame>DerSchmale/spirv4web export declare enum GLSLPrecision { DontCare = 0, Lowp = 1, Mediump = 2, Highp = 3 }
DerSchmale/spirv4web
build/types/compiler/glsl/GLSLVertexOptions.d.ts
export declare class GLSLVertexOptions { fixup_clipspace: boolean; flip_vert_y: boolean; support_nonzero_base_instance: boolean; }
DerSchmale/spirv4web
build/types/common/SPIRCombinedImageSampler.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; export declare class SPIRCombinedImageSampler extends IVariant { static type: Types; combined_type: TypeID; image: VariableID; sampler: VariableID; constructor(other: SPIRCombinedImageSampler); constructor(type: TypeID, imag...
DerSchmale/spirv4web
build/types/common/Types.d.ts
export declare enum Types { None = 0, Type = 1, Variable = 2, Constant = 3, Function = 4, FunctionPrototype = 5, Block = 6, Extension = 7, Expression = 8, ConstantOp = 9, CombinedImageSampler = 10, AccessChain = 11, Undef = 12, String = 13, Count = 14 }
DerSchmale/spirv4web
src/compiler/glsl/TextureFunctionArguments.ts
import { SPIRType } from "../../common/SPIRType"; export class TextureFunctionBaseArguments { img: VariableID = 0; imgtype: SPIRType; is_fetch: boolean = false; is_gather: boolean = false; is_proj: boolean = false; } export class TextureFunctionNameArguments { // GCC 4.8 workarounds, it doesn'...
DerSchmale/spirv4web
src/common/SPIRBlock.ts
<filename>src/common/SPIRBlock.ts import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { Instruction } from "./Instruction"; import { Pair } from "../utils/Pair"; import { defaultClone, defaultCopy } from "../utils/defaultCopy"; export enum SPIRBlockTerminator { Unknown, Direct, // Em...
DerSchmale/spirv4web
src/spirv/KernelProfilingInfoMask.ts
export enum KernelProfilingInfoMask { None = 0, CmdExecTime = 0x00000001, }
DerSchmale/spirv4web
src/parser/Parser.ts
// @ts-ignore import { createWith, equals, transform } from "@derschmale/array-utils"; import { ParsedIR } from "./ParsedIR"; import { Instruction } from "../common/Instruction"; import { SPIRFunction } from "../common/SPIRFunction"; import { SPIRBlock, SPIRBlockCase, SPIRBlockHints, SPIRBlockMerge, ...
DerSchmale/spirv4web
src/compiler/ShaderResources.ts
<filename>src/compiler/ShaderResources.ts import { BuiltIn } from "../spirv/BuiltIn"; export class Resource { // Resources are identified with their SPIR-V ID. // This is the ID of the OpVariable. id: ID; // The type ID of the variable which includes arrays and all type modifications. // This type...
DerSchmale/spirv4web
build/types/utils/util.d.ts
import { Compiler } from "../compiler/Compiler"; import { Resource } from "../compiler/ShaderResources"; export declare function rename_interface_variable(compiler: Compiler, resources: Resource[], location: number, name: string): void; export declare function inherit_combined_sampler_bindings(compiler: Compiler): void...
DerSchmale/spirv4web
build/types/compiler/glsl/ExtraSubExpressionType.d.ts
<reponame>DerSchmale/spirv4web<filename>build/types/compiler/glsl/ExtraSubExpressionType.d.ts export declare enum ExtraSubExpressionType { STREAM_OFFSET = 268435456, TYPE_AUX = 536870912 }
DerSchmale/spirv4web
build/types/spirv/RayQueryIntersection.d.ts
<filename>build/types/spirv/RayQueryIntersection.d.ts export declare enum RayQueryIntersection { CandidateKHR = 0, CommittedKHR = 1, Max = 2147483647 }
DerSchmale/spirv4web
build/types/common/SPIRConstantOp.d.ts
<gh_stars>0 import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { Op } from "../spirv/Op"; export declare class SPIRConstantOp extends IVariant { static type: Types; opcode: Op; arguments: number[]; basetype: TypeID; constructor(other: SPIRConstantOp); constructor(resu...
DerSchmale/spirv4web
build/types/spirv/MemorySemanticsShift.d.ts
export declare enum MemorySemanticsShift { Acquire = 1, Release = 2, AcquireRelease = 3, SequentiallyConsistent = 4, UniformMemory = 6, SubgroupMemory = 7, WorkgroupMemory = 8, CrossWorkgroupMemory = 9, AtomicCounterMemory = 10, ImageMemory = 11, OutputMemory = 12, Output...
DerSchmale/spirv4web
build/types/common/Bitset.d.ts
export declare class Bitset { private lower; private higher; constructor(lower?: number); get(bit: number): boolean; set(bit: number): void; clear(bit: number): void; get_lower(): number; reset(): void; merge_and(other: Bitset): void; merge_or(other: Bitset): void; equals(oth...
DerSchmale/spirv4web
build/types/common/IVariant.d.ts
import { ObjectPoolBase } from "../containers/ObjectPoolBase"; export declare type IVariantType<T> = { type: TypeID; new (other: T): T; }; export declare abstract class IVariant { self: ID; clone(pool: ObjectPoolBase): this; }
DerSchmale/spirv4web
build/types/common/Variant.d.ts
import { ObjectPoolGroup } from "./ObjectPoolGroup"; import { Types } from "./Types"; import { IVariant, IVariantType } from "./IVariant"; export declare class Variant { private group; private holder; private type; private allow_type_rewrite; private createdIn; constructor(group: ObjectPoolGroup...
DerSchmale/spirv4web
src/compiler/glsl/CompilerGLSL.ts
import { Compiler } from "../Compiler"; import { opcode_is_sign_invariant, to_signed_basetype, to_unsigned_basetype, type_is_floating_point, type_is_integral } from "../../common/common"; import { ParsedIR } from "../../parser/ParsedIR"; import { LocationComponentPair } from "../../common/LocationCo...
DerSchmale/spirv4web
build/types/common/ObjectPoolGroup.d.ts
import { ObjectPoolBase } from "../containers/ObjectPoolBase"; export declare class ObjectPoolGroup { pools: ObjectPoolBase[]; constructor(); }
DerSchmale/spirv4web
build/types/common/SPIRFunctionPrototype.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; export declare class SPIRFunctionPrototype extends IVariant { static type: Types; return_type: TypeID; parameter_types: number[]; constructor(other: SPIRFunctionPrototype); constructor(return_type: TypeID); }
DerSchmale/spirv4web
src/spirv/MemoryAccessShift.ts
<filename>src/spirv/MemoryAccessShift.ts export enum MemoryAccessShift { Volatile = 0, Aligned = 1, Nontemporal = 2, MakePointerAvailable = 3, MakePointerAvailableKHR = 3, MakePointerVisible = 4, MakePointerVisibleKHR = 4, NonPrivatePointer = 5, NonPrivatePointerKHR = 5, Max = 0x...
DerSchmale/spirv4web
src/compiler/PhysicalStorageBufferPointerHandler.ts
<reponame>DerSchmale/spirv4web<gh_stars>0 import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { PhysicalBlockMeta } from "./PhysicalBlockMeta"; import { SPIRType, SPIRBaseType } from "../common/SPIRType"; import { maplike_get } from "../utils/maplike_get"; import { Op } from "...
DerSchmale/spirv4web
build/types/common/SPIRExtension.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; export declare enum SPIRExtensionExtension { Unsupported = 0, GLSL = 1, SPV_debug_info = 2, SPV_AMD_shader_ballot = 3, SPV_AMD_shader_explicit_vertex_parameter = 4, SPV_AMD_shader_trinary_minmax = 5, SPV_AMD_gcn_shader =...
DerSchmale/spirv4web
build/types/spirv/MemorySemanticsMask.d.ts
<filename>build/types/spirv/MemorySemanticsMask.d.ts export declare enum MemorySemanticsMask { None = 0, Acquire = 2, Release = 4, AcquireRelease = 8, SequentiallyConsistent = 16, UniformMemory = 64, SubgroupMemory = 128, WorkgroupMemory = 256, CrossWorkgroupMemory = 512, AtomicC...
DerSchmale/spirv4web
src/spirv/LoopControlMask.ts
export enum LoopControlMask { None = 0, Unroll = 0x00000001, DontUnroll = 0x00000002, DependencyInfinite = 0x00000004, DependencyLength = 0x00000008, MinIterations = 0x00000010, MaxIterations = 0x00000020, IterationMultiple = 0x00000040, PeelCount = 0x00000080, PartialCount = 0x0...
DerSchmale/spirv4web
build/types/compiler/ShaderResources.d.ts
<reponame>DerSchmale/spirv4web import { BuiltIn } from "../spirv/BuiltIn"; export declare class Resource { id: ID; type_id: TypeID; base_type_id: TypeID; name: string; constructor(id: ID, type_id: TypeID, base_type_id: TypeID, name: string); } export declare class BuiltInResource { builtin: Buil...
DerSchmale/spirv4web
src/compiler/glsl/GLSLVertexOptions.ts
<gh_stars>0 export class GLSLVertexOptions { // "Vertex-like shader" here is any shader stage that can write BuiltInPosition. // GLSL: In vertex-like shaders, rewrite [0, w] depth (Vulkan/D3D style) to [-w, w] depth (GL style). // MSL: In vertex-like shaders, rewrite [-w, w] depth (GL style) to [0, w] depth. ...
DerSchmale/spirv4web
build/types/compiler/InterlockedResourceAccessHandler.d.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { Op } from "../spirv/Op"; export declare class InterlockedResourceAccessHandler extends OpcodeHandler { compiler: Compiler; in_crit_sec: boolean; interlock_function_id: number; split_function_case: boolean; ...
DerSchmale/spirv4web
src/parser/ParsedIR.ts
// @ts-ignore import { createWith, removeAllElements } from "@derschmale/array-utils"; import { Variant, variant_get, variant_set } from "../common/Variant"; import { ObjectPoolGroup } from "../common/ObjectPoolGroup"; import { Meta, MetaDecoration } from "../common/Meta"; import { Types } from "../common/Types"; impor...
DerSchmale/spirv4web
build/types/common/SPIRVariable.d.ts
<reponame>DerSchmale/spirv4web import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { SPIRFunctionParameter } from "./SPIRFunction"; import { StorageClass } from "../spirv/StorageClass"; export declare class SPIRVariable extends IVariant { static type: Types; basetype: TypeID; stor...
DerSchmale/spirv4web
build/types/spirv/ImageChannelOrder.d.ts
export declare enum ImageChannelOrder { R = 0, A = 1, RG = 2, RA = 3, RGB = 4, RGBA = 5, BGRA = 6, ARGB = 7, Intensity = 8, Luminance = 9, Rx = 10, RGx = 11, RGBx = 12, Depth = 13, DepthStencil = 14, sRGB = 15, sRGBx = 16, sRGBA = 17, sBGRA = 1...
DerSchmale/spirv4web
src/spirv/Capability.ts
export enum Capability { Matrix = 0, Shader = 1, Geometry = 2, Tessellation = 3, Addresses = 4, Linkage = 5, Kernel = 6, Vector16 = 7, Float16Buffer = 8, Float16 = 9, Float64 = 10, Int64 = 11, Int64Atomics = 12, ImageBasic = 13, ImageReadWrite = 14, ImageM...
DerSchmale/spirv4web
build/types/compiler/PhysicalBlockMeta.d.ts
<gh_stars>0 export declare class PhysicalBlockMeta { alignment: number; }
DerSchmale/spirv4web
src/common/SPIRFunctionPrototype.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultCopy } from "../utils/defaultCopy"; export class SPIRFunctionPrototype extends IVariant { static type = Types.FunctionPrototype; return_type: TypeID; parameter_types: number[] = []; constructor(other: SPIRFunction...
DerSchmale/spirv4web
build/types/spirv/SelectionControlMask.d.ts
export declare enum SelectionControlMask { None = 0, Flatten = 1, DontFlatten = 2 }
DerSchmale/spirv4web
src/utils/ensure_types.ts
const _uint32 = new Uint32Array(1); // bit operators assume signed values, so ~0 = -1, but if uint, it would be 0xffffffff export function uint32(value: number): number { _uint32[0] = value; return _uint32[0]; }
DerSchmale/spirv4web
src/compiler/StaticExpressionAccessHandler.ts
<filename>src/compiler/StaticExpressionAccessHandler.ts import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRFunction } from "../common/SPIRFunction"; import { Op } from "../spirv/Op"; export class StaticExpressionAccessHandler extends OpcodeHandler { compiler: Compi...
DerSchmale/spirv4web
build/types/cfg/VisitOrder.d.ts
<filename>build/types/cfg/VisitOrder.d.ts export declare class VisitOrder { v: number; get(): number; set(value: number): void; }
DerSchmale/spirv4web
build/types/common/SPIRUndef.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; export declare class SPIRUndef extends IVariant { static type: Types; basetype: TypeID; constructor(other: SPIRUndef); constructor(basetype: TypeID); }
DerSchmale/spirv4web
build/types/compiler/glsl/TextureFunctionArguments.d.ts
<reponame>DerSchmale/spirv4web import { SPIRType } from "../../common/SPIRType"; export declare class TextureFunctionBaseArguments { img: VariableID; imgtype: SPIRType; is_fetch: boolean; is_gather: boolean; is_proj: boolean; } export declare class TextureFunctionNameArguments { base: TextureFun...
DerSchmale/spirv4web
src/spirv/FunctionControlMask.ts
<gh_stars>0 export enum FunctionControlMask { None = 0, Inline = 0x00000001, DontInline = 0x00000002, Pure = 0x00000004, Const = 0x00000008, }
DerSchmale/spirv4web
build/types/compiler/CombinedImageSampler.d.ts
export declare class CombinedImageSampler { combined_id: VariableID; image_id: VariableID; sampler_id: VariableID; constructor(combined_id: VariableID, image_id: VariableID, sampler_id: VariableID); }
DerSchmale/spirv4web
build/types/common/AccessChainMeta.d.ts
<filename>build/types/common/AccessChainMeta.d.ts export declare class AccessChainMeta { storage_physical_type: number; need_transpose: boolean; storage_is_packed: boolean; storage_is_invariant: boolean; flattened_struct: boolean; }
DerSchmale/spirv4web
build/types/compiler/Compiler.d.ts
<reponame>DerSchmale/spirv4web<filename>build/types/compiler/Compiler.d.ts import { ParsedIR } from "../parser/ParsedIR"; import { SPIRType, SPIRBaseType } from "../common/SPIRType"; import { SPIRVariable } from "../common/SPIRVariable"; import { IVariant, IVariantType } from "../common/IVariant"; import { SPIREntryPoi...
DerSchmale/spirv4web
src/compiler/Hasher.ts
export class Hasher { private h: bigint = BigInt(0xcbf29ce484222325); u32(value: number) { this.h = (this.h * BigInt(0x100000001b3)) ^ BigInt(value); } get(): bigint { return this.h; } }
DerSchmale/spirv4web
build/types/cfg/DominatorBuilder.d.ts
import { CFG } from "./CFG"; export declare class DominatorBuilder { private cfg; private dominator; constructor(cfg: CFG); add_block(block: number): void; get_dominator(): number; lift_continue_block_dominator(): void; }
DerSchmale/spirv4web
src/common/Variant.ts
<reponame>DerSchmale/spirv4web import { ObjectPoolGroup } from "./ObjectPoolGroup"; import { Types } from "./Types"; import { IVariant, IVariantType } from "./IVariant"; import { ObjectPool } from "../containers/ObjectPool"; export class Variant { private group: ObjectPoolGroup; private holder: IVariant = null...
DerSchmale/spirv4web
build/types/spirv/KernelProfilingInfoShift.d.ts
<gh_stars>0 export declare enum KernelProfilingInfoShift { CmdExecTime = 0, Max = 2147483647 }
DerSchmale/spirv4web
build/types/utils/set_compare.d.ts
<filename>build/types/utils/set_compare.d.ts export declare function set_compare<T>(a: Set<T>, b: Set<T>): boolean;
DerSchmale/spirv4web
src/spirv/GroupOperation.ts
export enum GroupOperation { Reduce = 0, InclusiveScan = 1, ExclusiveScan = 2, ClusteredReduce = 3, PartitionedReduceNV = 6, PartitionedInclusiveScanNV = 7, PartitionedExclusiveScanNV = 8, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/common/SPIRUndef.ts
<reponame>DerSchmale/spirv4web<gh_stars>0 import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultCopy } from "../utils/defaultCopy"; export class SPIRUndef extends IVariant { static type = Types.Undef; basetype: TypeID; constructor(other: SPIRUndef); constructor(baset...
DerSchmale/spirv4web
src/spirv/FPFastMathModeMask.ts
<reponame>DerSchmale/spirv4web export enum FPFastMathModeMask { None = 0, NaNMask = 0x00000001, InfMask = 0x00000002, NSZMask = 0x00000004, AllowRecipMask = 0x00000008, FastMask = 0x00000010, }
DerSchmale/spirv4web
src/compiler/InterlockedResourceAccessPrepassHandler.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRBlock } from "../common/SPIRBlock"; import { SPIRFunction } from "../common/SPIRFunction"; import { Op } from "../spirv/Op"; export class InterlockedResourceAccessPrepassHandler extends OpcodeHandler { compiler: Co...
DerSchmale/spirv4web
build/types/parser/ParsedIR.d.ts
import { Variant } from "../common/Variant"; import { Meta } from "../common/Meta"; import { Types } from "../common/Types"; import { SPIREntryPoint } from "../common/SPIREntryPoint"; import { Bitset } from "../common/Bitset"; import { MemberPointer, Pointer } from "../utils/Pointer"; import { SPIRVariable } from "../c...
DerSchmale/spirv4web
src/common/Types.ts
export enum Types { None, Type, Variable, Constant, Function, FunctionPrototype, Block, Extension, Expression, ConstantOp, CombinedImageSampler, AccessChain, Undef, String, Count }
DerSchmale/spirv4web
src/common/SPIRAccessChain.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultCopy } from "../utils/defaultCopy"; import { StorageClass } from "../spirv/StorageClass"; export class SPIRAccessChain extends IVariant { static type = Types.AccessChain; // The access chain represents an offset into a buf...
DerSchmale/spirv4web
src/common/LocationComponentPair.ts
export class LocationComponentPair { location: number; component: number; constructor(location: number, component: number) { this.location = location; this.component = component; } }
DerSchmale/spirv4web
src/spirv/BuiltIn.ts
<filename>src/spirv/BuiltIn.ts export enum BuiltIn { Position = 0, PointSize = 1, ClipDistance = 3, CullDistance = 4, VertexId = 5, InstanceId = 6, PrimitiveId = 7, InvocationId = 8, Layer = 9, ViewportIndex = 10, TessLevelOuter = 11, TessLevelInner = 12, TessCoord = ...
DerSchmale/spirv4web
src/common/SPIRVariable.ts
<filename>src/common/SPIRVariable.ts import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { SPIRFunctionParameter } from "./SPIRFunction"; import { defaultCopy } from "../utils/defaultCopy"; import { StorageClass } from "../spirv/StorageClass"; export class SPIRVariable extends IVariant { ...
DerSchmale/spirv4web
build/types/spirv/ExecutionMode.d.ts
<filename>build/types/spirv/ExecutionMode.d.ts export declare enum ExecutionMode { Invocations = 0, SpacingEqual = 1, SpacingFractionalEven = 2, SpacingFractionalOdd = 3, VertexOrderCw = 4, VertexOrderCcw = 5, PixelCenterInteger = 6, OriginUpperLeft = 7, OriginLowerLeft = 8, Earl...