repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
DerSchmale/spirv4web
src/utils/defaultCopy.ts
<reponame>DerSchmale/spirv4web // a shallow copy function import { DefaultConstructor } from "../common/ConstructorTypes"; export function defaultCopy<T>(src: T, dst: T) { for (let key in src) { if (src.hasOwnProperty(key)) dst[key] = _clone(src[key]); } } export function defaultClone<T>(c...
DerSchmale/spirv4web
build/types/common/SPIRConstant.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { SPIRType } from "./SPIRType"; export declare class SPIRConstantConstant { value: ArrayBuffer; private _dataView; get u32(): number; set u32(value: number); get i32(): number; set i32(value: number); get f32(): n...
DerSchmale/spirv4web
build/types/compiler/DebugHandler.d.ts
<reponame>DerSchmale/spirv4web import { OpcodeHandler } from "./OpcodeHandler"; import { Op } from "../spirv/Op"; export declare class DebugHandler extends OpcodeHandler { private compiler; constructor(compiler: any); handle(opcode: Op, args: Uint32Array, length: number): boolean; get_name(id: number): ...
DerSchmale/spirv4web
src/spirv/Op.ts
<gh_stars>0 export enum Op { Nop = 0, Undef = 1, SourceContinued = 2, Source = 3, SourceExtension = 4, Name = 5, MemberName = 6, String = 7, Line = 8, Extension = 10, ExtInstImport = 11, ExtInst = 12, MemoryModel = 14, EntryPoint = 15, ExecutionMode = 16, ...
DerSchmale/spirv4web
src/cfg/CFG.ts
<reponame>DerSchmale/spirv4web import { Compiler } from "../compiler/Compiler"; import { SPIRFunction } from "../common/SPIRFunction"; import { VisitOrder } from "./VisitOrder"; import { SPIRBlock, SPIRBlockMerge, SPIRBlockTerminator } from "../common/SPIRBlock"; import { DominatorBuilder } from "./DominatorBuilder"; i...
DerSchmale/spirv4web
src/spirv/SelectionControlMask.ts
export enum SelectionControlMask { None = 0, Flatten = 0x00000001, DontFlatten = 0x00000002, }
DerSchmale/spirv4web
build/types/compiler/BufferPackingStandard.d.ts
export declare enum BufferPackingStandard { Std140 = 0, Std430 = 1, Std140EnhancedLayout = 2, Std430EnhancedLayout = 3, _HLSLCbuffer = 4, _HLSLCbufferPackOffset = 5, PackingScalar = 6, PackingScalarEnhancedLayout = 7 }
DerSchmale/spirv4web
src/spirv/RayQueryCandidateIntersectionType.ts
<gh_stars>0 export enum RayQueryCandidateIntersectionType { RayQueryCandidateIntersectionTriangleKHR = 0, RayQueryCandidateIntersectionAABBKHR = 1, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/spirv/FunctionControlShift.ts
export enum FunctionControlShift { Inline = 0, DontInline = 1, Pure = 2, Const = 3, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/common/Bitset.ts
// @ts-ignore import { compare } from "@derschmale/array-utils" import { defaultClone } from "../utils/defaultCopy"; import { set_compare } from "../utils/set_compare"; export class Bitset { // The most common bits to set are all lower than 64, // so optimize for this case. Bits spilling outside 64 go into a slower d...
DerSchmale/spirv4web
build/types/spirv/Dim.d.ts
<filename>build/types/spirv/Dim.d.ts export declare enum Dim { Dim1D = 0, Dim2D = 1, Dim3D = 2, Cube = 3, Rect = 4, Buffer = 5, SubpassData = 6, Max = 2147483647 }
DerSchmale/spirv4web
src/spirv/SamplerAddressingMode.ts
<gh_stars>0 export enum SamplerAddressingMode { None = 0, ClampToEdge = 1, Clamp = 2, Repeat = 3, RepeatMirrored = 4, Max = 0x7fffffff, }
DerSchmale/spirv4web
build/types/common/SPIRBlock.d.ts
<filename>build/types/common/SPIRBlock.d.ts import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { Instruction } from "./Instruction"; import { Pair } from "../utils/Pair"; export declare enum SPIRBlockTerminator { Unknown = 0, Direct = 1, Select = 2, MultiSelect = 3, Retur...
DerSchmale/spirv4web
build/types/utils/defaultCopy.d.ts
import { DefaultConstructor } from "../common/ConstructorTypes"; export declare function defaultCopy<T>(src: T, dst: T): void; export declare function defaultClone<T>(classRef: DefaultConstructor<T>, src: T): T;
DerSchmale/spirv4web
src/compiler/CombinedImageSampler.ts
<reponame>DerSchmale/spirv4web<filename>src/compiler/CombinedImageSampler.ts export class CombinedImageSampler { // The ID of the sampler2D variable. combined_id: VariableID; // The ID of the texture2D variable. image_id: VariableID; // The ID of the sampler variable. sampler_id: VariableID; ...
DerSchmale/spirv4web
build/types/spirv/MemoryModel.d.ts
export declare enum MemoryModel { Simple = 0, GLSL450 = 1, OpenCL = 2, Vulkan = 3, VulkanKHR = 3, Max = 2147483647 }
DerSchmale/spirv4web
build/types/compiler/StaticExpressionAccessHandler.d.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRFunction } from "../common/SPIRFunction"; import { Op } from "../spirv/Op"; export declare class StaticExpressionAccessHandler extends OpcodeHandler { compiler: Compiler; variable_id: number; static_expressi...
DerSchmale/spirv4web
src/compiler/ActiveBuiltinHandler.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { Bitset } from "../common/Bitset"; import { SPIRType } from "../common/SPIRType"; import { SPIRVariable } from "../common/SPIRVariable"; import { BuiltIn } from "../spirv/BuiltIn"; import { Op } from "../spirv/Op"; import { ...
DerSchmale/spirv4web
src/spirv/ImageOperandsMask.ts
<filename>src/spirv/ImageOperandsMask.ts export enum ImageOperandsMask { None = 0, Bias = 0x00000001, Lod = 0x00000002, Grad = 0x00000004, ConstOffset = 0x00000008, Offset = 0x00000010, ConstOffsets = 0x00000020, Sample = 0x00000040, MinLod = 0x00000080, MakeTexelAvailable = 0x00...
DerSchmale/spirv4web
build/types/compiler/glsl/GLSLFragmentOptions.d.ts
<filename>build/types/compiler/glsl/GLSLFragmentOptions.d.ts import { GLSLPrecision } from "./GLSLPrecision"; export declare class GLSLFragmentOptions { default_float_precision: GLSLPrecision; default_int_precision: GLSLPrecision; }
DerSchmale/spirv4web
src/common/SPIRExpression.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultCopy } from "../utils/defaultCopy"; export class SPIRExpression extends IVariant { static type = Types.Expression; // If non-zero, prepend expression with to_expression(base_expression). // Used in amortizing multiple ...
DerSchmale/spirv4web
build/types/compiler/PhysicalStorageBufferPointerHandler.d.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { PhysicalBlockMeta } from "./PhysicalBlockMeta"; import { SPIRType } from "../common/SPIRType"; import { Op } from "../spirv/Op"; export declare class PhysicalStorageBufferPointerHandler extends OpcodeHandler { compiler:...
DerSchmale/spirv4web
src/compiler/glsl/ExtraSubExpressionType.ts
<filename>src/compiler/glsl/ExtraSubExpressionType.ts export enum ExtraSubExpressionType { // Create masks above any legal ID range to allow multiple address spaces into the extra_sub_expressions map. STREAM_OFFSET = 0x10000000, TYPE_AUX = 0x20000000 }
DerSchmale/spirv4web
src/spirv/SourceLanguage.ts
<gh_stars>0 export enum SourceLanguage { Unknown = 0, ESSL = 1, GLSL = 2, OpenCL_C = 3, OpenCL_CPP = 4, HLSL = 5, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/containers/ObjectPoolBase.ts
import { FromConstructor } from "../common/ConstructorTypes"; export abstract class ObjectPoolBase { abstract deallocate_opaque(ptr: any); }
DerSchmale/spirv4web
src/common/ConstructorTypes.ts
// this is a stand-in for copy-constructors etc export type FromConstructor<T> = { from(...params): T } export type DefaultConstructor<T> = { new(): T } export type AnyConstructor<T> = { new(...args): T }
DerSchmale/spirv4web
build/types/spirv/RayFlagsMask.d.ts
<reponame>DerSchmale/spirv4web export declare enum RayFlagsMask { None = 0, OpaqueKHR = 1, NoOpaqueKHR = 2, TerminateOnFirstHitKHR = 4, SkipClosestHitShaderKHR = 8, CullBackFacingTrianglesKHR = 16, CullFrontFacingTrianglesKHR = 32, CullOpaqueKHR = 64, CullNoOpaqueKHR = 128, SkipT...
DerSchmale/spirv4web
src/common/SPIRType.ts
<reponame>DerSchmale/spirv4web import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultClone, defaultCopy } from "../utils/defaultCopy"; import { Dim } from "../spirv/Dim"; import { ImageFormat } from "../spirv/ImageFormat"; import { AccessQualifier } from "../spirv/AccessQualifier"; imp...
DerSchmale/spirv4web
build/types/main.d.ts
import { Dict } from "./utils/Dict"; /** * The target driver version to use. */ export declare enum Version { WebGL1 = 100, WebGL2 = 300 } /** * The available options. */ export declare type Options = { /** * Removes unused variables. Defaults to true. */ removeUnused?: boolean; /** ...
DerSchmale/spirv4web
build/types/spirv/ImageOperandsShift.d.ts
export declare enum ImageOperandsShift { Bias = 0, Lod = 1, Grad = 2, ConstOffset = 3, Offset = 4, ConstOffsets = 5, Sample = 6, MinLod = 7, MakeTexelAvailable = 8, MakeTexelAvailableKHR = 8, MakeTexelVisible = 9, MakeTexelVisibleKHR = 9, NonPrivateTexel = 10, Non...
DerSchmale/spirv4web
src/spirv/RayFlagsMask.ts
<reponame>DerSchmale/spirv4web<filename>src/spirv/RayFlagsMask.ts<gh_stars>0 export enum RayFlagsMask { None = 0, OpaqueKHR = 0x00000001, NoOpaqueKHR = 0x00000002, TerminateOnFirstHitKHR = 0x00000004, SkipClosestHitShaderKHR = 0x00000008, CullBackFacingTrianglesKHR = 0x00000010, CullFrontFac...
DerSchmale/spirv4web
build/types/compiler/CombinedImageSamplerUsageHandler.d.ts
<reponame>DerSchmale/spirv4web<filename>build/types/compiler/CombinedImageSamplerUsageHandler.d.ts import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { Op } from "../spirv/Op"; export declare class CombinedImageSamplerUsageHandler extends OpcodeHandler { compiler: Compile...
DerSchmale/spirv4web
src/compiler/EntryPoint.ts
import { ExecutionModel } from "../spirv/ExecutionModel"; export class EntryPoint { name: string; execution_model: ExecutionModel; constructor(name: string, model: ExecutionModel) { this.name = name; this.execution_model = model; } }
DerSchmale/spirv4web
src/cfg/DominatorBuilder.ts
import { CFG } from "./CFG"; import { SPIRBlock, SPIRBlockTerminator } from "../common/SPIRBlock"; export class DominatorBuilder { private cfg: CFG; private dominator: number = 0; constructor(cfg: CFG) { this.cfg = cfg; } add_block(block: number) { if (!this.cfg.get_immedi...
DerSchmale/spirv4web
build/types/compileIteration.d.ts
<filename>build/types/compileIteration.d.ts import { Args } from "./Args"; import { Dict } from "./utils/Dict"; export declare function compile_iteration(args: Args, spirv_file: Uint32Array, unnamedUBOInfo: Dict<string[]>): string;
DerSchmale/spirv4web
src/compiler/InterlockedResourceAccessHandler.ts
<filename>src/compiler/InterlockedResourceAccessHandler.ts import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRExpression } from "../common/SPIRExpression"; import { SPIRType } from "../common/SPIRType"; import { Op } from "../spirv/Op"; import { StorageClass } from "../...
DerSchmale/spirv4web
src/spirv/AddressingModel.ts
export enum AddressingModel { Logical = 0, Physical32 = 1, Physical64 = 2, PhysicalStorageBuffer64 = 5348, PhysicalStorageBuffer64EXT = 5348, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/compiler/CombinedImageSamplerUsageHandler.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { maplike_get } from "../utils/maplike_get"; import { SPIRFunction } from "../common/SPIRFunction"; import { Op } from "../spirv/Op"; export class CombinedImageSamplerUsageHandler extends OpcodeHandler { compiler: Compil...
DerSchmale/spirv4web
build/types/compiler/glsl/AccessChainFlagBits.d.ts
export declare enum AccessChainFlagBits { INDEX_IS_LITERAL_BIT = 1, CHAIN_ONLY_BIT = 2, PTR_CHAIN_BIT = 4, SKIP_REGISTER_EXPRESSION_READ_BIT = 8, LITERAL_MSB_FORCE_ID = 16, FLATTEN_ALL_MEMBERS_BIT = 32, FORCE_COMPOSITE_BIT = 64 }
DerSchmale/spirv4web
src/compiler/InterfaceVariableAccessHandler.ts
<reponame>DerSchmale/spirv4web<gh_stars>0 import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRVariable } from "../common/SPIRVariable"; import { SPIRExtension, SPIRExtensionExtension } from "../common/SPIRExtension"; import { GLSLstd450 } from "./glsl/glsl"; import { Op ...
DerSchmale/spirv4web
src/common/SPIRCombinedImageSampler.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultCopy } from "../utils/defaultCopy"; export class SPIRCombinedImageSampler extends IVariant { static type = Types.CombinedImageSampler; combined_type: TypeID; image: VariableID; sampler: VariableID; constructor...
DerSchmale/spirv4web
build/types/spirv/LoopControlMask.d.ts
export declare enum LoopControlMask { None = 0, Unroll = 1, DontUnroll = 2, DependencyInfinite = 4, DependencyLength = 8, MinIterations = 16, MaxIterations = 32, IterationMultiple = 64, PeelCount = 128, PartialCount = 256, InitiationIntervalINTEL = 65536, MaxConcurrencyIN...
DerSchmale/spirv4web
build/types/spirv/MemoryAccessMask.d.ts
export declare enum MemoryAccessMask { None = 0, Volatile = 1, Aligned = 2, Nontemporal = 4, MakePointerAvailable = 8, MakePointerAvailableKHR = 8, MakePointerVisible = 16, MakePointerVisibleKHR = 16, NonPrivatePointer = 32, NonPrivatePointerKHR = 32 }
DerSchmale/spirv4web
src/common/SPIRExtension.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultCopy } from "../utils/defaultCopy"; export enum SPIRExtensionExtension { Unsupported, GLSL, SPV_debug_info, SPV_AMD_shader_ballot, SPV_AMD_shader_explicit_vertex_parameter, SPV_AMD_shader_trinary_minmax, ...
DerSchmale/spirv4web
build/types/spirv/FragmentShadingRateMask.d.ts
export declare enum FragmentShadingRateMask { None = 0, Vertical2Pixels = 1, Vertical4Pixels = 2, Horizontal2Pixels = 4, Horizontal4Pixels = 8 }
DerSchmale/spirv4web
build/types/utils/bigint.d.ts
declare function bigintFrom(high: number, low: number): bigint;
DerSchmale/spirv4web
src/compiler/Compiler.ts
<filename>src/compiler/Compiler.ts // @ts-ignore import { count, unique } from "@derschmale/array-utils"; import { ParsedIR } from "../parser/ParsedIR"; import { SPIRType, SPIRBaseType } from "../common/SPIRType"; import { Types } from "../common/Types"; import { SPIRConstant } from "../common/SPIRConstant"; import { S...
DerSchmale/spirv4web
build/types/utils/string.d.ts
export declare function replaceCharAt(str: string, index: number, char: string): string; export declare function convert_to_string(value: any): any; export declare function convert_to_string(value: bigint, int64_type: string, long_long_literal_suffix: boolean): any;
DerSchmale/spirv4web
build/types/ParsedIR.d.ts
export declare class ParsedIR { spirv: Uint32Array; constructor(); }
DerSchmale/spirv4web
build/types/containers/ObjectPoolBase.d.ts
export declare abstract class ObjectPoolBase { abstract deallocate_opaque(ptr: any): any; }
DerSchmale/spirv4web
src/utils/StringStream.ts
export class StringStream { _str: string = ""; str() { return this._str; } append(...args) { this._str = this._str.concat(...args); } reset() { this._str = ""; } }
DerSchmale/spirv4web
src/spirv/RayQueryIntersection.ts
export enum RayQueryIntersection { CandidateKHR = 0, CommittedKHR = 1, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/compiler/BufferPackingStandard.ts
export enum BufferPackingStandard { Std140, Std430, Std140EnhancedLayout, Std430EnhancedLayout, _HLSLCbuffer, _HLSLCbufferPackOffset, PackingScalar, PackingScalarEnhancedLayout }
DerSchmale/spirv4web
build/types/common/SPIRExpression.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; export declare class SPIRExpression extends IVariant { static type: Types; base_expression: ID; expression: string; expression_type: TypeID; loaded_from: ID; immutable: boolean; need_transpose: boolean; access_chain:...
DerSchmale/spirv4web
build/types/utils/StringStream.d.ts
export declare class StringStream { _str: string; str(): string; append(...args: any[]): void; reset(): void; }
DerSchmale/spirv4web
src/common/SPIRConstantOp.ts
<filename>src/common/SPIRConstantOp.ts import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultCopy } from "../utils/defaultCopy"; import { Op } from "../spirv/Op"; export class SPIRConstantOp extends IVariant { static type = Types.ConstantOp; opcode: Op; arguments: number[...
DerSchmale/spirv4web
build/types/compiler/AnalyzeVariableScopeAccessHandler.d.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { SPIRFunction } from "../common/SPIRFunction"; import { Compiler } from "./Compiler"; import { SPIRBlock } from "../common/SPIRBlock"; import { Op } from "../spirv/Op"; export declare class AnalyzeVariableScopeAccessHandler extends OpcodeHandler { compiler: C...
DerSchmale/spirv4web
build/types/common/ConstructorTypes.d.ts
export declare type FromConstructor<T> = { from(...params: any[]): T; }; export declare type DefaultConstructor<T> = { new (): T; }; export declare type AnyConstructor<T> = { new (...args: any[]): T; };
DerSchmale/spirv4web
build/types/spirv/RayQueryCandidateIntersectionType.d.ts
export declare enum RayQueryCandidateIntersectionType { RayQueryCandidateIntersectionTriangleKHR = 0, RayQueryCandidateIntersectionAABBKHR = 1, Max = 2147483647 }
DerSchmale/spirv4web
src/spirv/MemoryAccessMask.ts
<filename>src/spirv/MemoryAccessMask.ts export enum MemoryAccessMask { None = 0, Volatile = 0x00000001, Aligned = 0x00000002, Nontemporal = 0x00000004, MakePointerAvailable = 0x00000008, MakePointerAvailableKHR = 0x00000008, MakePointerVisible = 0x00000010, MakePointerVisibleKHR = 0x0000...
DerSchmale/spirv4web
src/spirv/FragmentShadingRateMask.ts
export enum FragmentShadingRateMask { None = 0, Vertical2Pixels = 0x00000001, Vertical4Pixels = 0x00000002, Horizontal2Pixels = 0x00000004, Horizontal4Pixels = 0x00000008, }
DerSchmale/spirv4web
src/compiler/CombinedImageSamplerHandler.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { SPIRFunction, SPIRFunctionCombinedImageSamplerParameter, SPIRFunctionParameter } from "../common/SPIRFunction"; import { SPIRType, SPIRBaseType } from "../common/SPIRType"; import { SPIRExpression } from "../com...
DerSchmale/spirv4web
build/types/parser/Parser.d.ts
import { ParsedIR } from "./ParsedIR"; import { SPIRType } from "../common/SPIRType"; import { IVariant, IVariantType } from "../common/IVariant"; export declare class Parser { private ir; private current_function; private current_block; private global_struct_cache; private forward_pointer_fixups; ...
DerSchmale/spirv4web
build/types/Parser.d.ts
<reponame>DerSchmale/spirv4web import { ParsedIR } from "./ParsedIR"; export declare class Parser { ir: ParsedIR; constructor(spirv: Uint32Array); parse(): void; }
DerSchmale/spirv4web
src/compiler/DebugHandler.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { Op } from "../spirv/Op"; export class DebugHandler extends OpcodeHandler { private compiler: Compiler; constructor(compiler) { super(); this.compiler = compiler; } handle(opcode: Op, a...
DerSchmale/spirv4web
build/types/common/SPIRType.d.ts
import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { Dim } from "../spirv/Dim"; import { ImageFormat } from "../spirv/ImageFormat"; import { AccessQualifier } from "../spirv/AccessQualifier"; import { StorageClass } from "../spirv/StorageClass"; export declare enum SPIRBaseType { Unknown...
DerSchmale/spirv4web
src/compiler/AnalyzeVariableScopeAccessHandler.ts
<reponame>DerSchmale/spirv4web import { OpcodeHandler } from "./OpcodeHandler"; import { SPIRFunction } from "../common/SPIRFunction"; import { Compiler } from "./Compiler"; import { SPIRBlock, SPIRBlockTerminator } from "../common/SPIRBlock"; import { maplike_get } from "../utils/maplike_get"; import { SPIRVariable } ...
DerSchmale/spirv4web
src/common/SPIRConstant.ts
<reponame>DerSchmale/spirv4web // @ts-ignore import { createWith } from "@derschmale/array-utils"; import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { defaultClone, defaultCopy } from "../utils/defaultCopy"; import { SPIRType } from "./SPIRType"; import { uint32 } from "../utils/ensure_type...
DerSchmale/spirv4web
build/types/spirv/KernelEnqueueFlags.d.ts
<filename>build/types/spirv/KernelEnqueueFlags.d.ts<gh_stars>0 export declare enum KernelEnqueueFlags { NoWait = 0, WaitKernel = 1, WaitWorkGroup = 2, Max = 2147483647 }
DerSchmale/spirv4web
build/types/spirv/FPRoundingMode.d.ts
export declare enum FPRoundingMode { RTE = 0, RTZ = 1, RTP = 2, RTN = 3, Max = 2147483647 }
DerSchmale/spirv4web
src/utils/maplike_get.ts
import { DefaultConstructor } from "../common/ConstructorTypes"; import { Dict } from "./Dict"; export function maplike_get<T>(classRef: DefaultConstructor<T>, map: T[] | Dict<T>, id: number | string): T; export function maplike_get(classRef: number, map: number[] | Dict<number>, id: number | string): number; export f...
DerSchmale/spirv4web
build/types/cfg/CFG.d.ts
import { Compiler } from "../compiler/Compiler"; import { SPIRFunction } from "../common/SPIRFunction"; export declare class CFG { private compiler; private func; private preceding_edges; private succeeding_edges; private immediate_dominators; private visit_order; private post_order; pri...
DerSchmale/spirv4web
src/compiler/CombinedImageSamplerDrefHandler.ts
import { OpcodeHandler } from "./OpcodeHandler"; import { Compiler } from "./Compiler"; import { Op } from "../spirv/Op"; export class CombinedImageSamplerDrefHandler extends OpcodeHandler { compiler: Compiler; dref_combined_samplers: Set<number> = new Set<number>(); constructor(compiler: Compiler) { ...
DerSchmale/spirv4web
src/spirv/ImageChannelDataType.ts
export enum ImageChannelDataType { SnormInt8 = 0, SnormInt16 = 1, UnormInt8 = 2, UnormInt16 = 3, UnormShort565 = 4, UnormShort555 = 5, UnormInt101010 = 6, SignedInt8 = 7, SignedInt16 = 8, SignedInt32 = 9, UnsignedInt8 = 10, UnsignedInt16 = 11, UnsignedInt32 = 12, ...
DerSchmale/spirv4web
build/types/spirv/FunctionControlMask.d.ts
export declare enum FunctionControlMask { None = 0, Inline = 1, DontInline = 2, Pure = 4, Const = 8 }
DerSchmale/spirv4web
build/types/common/TypedID.d.ts
<gh_stars>0 declare type VariableID = number; declare type TypeID = number; declare type ConstantID = number; declare type FunctionID = number; declare type BlockID = number; declare type ID = number;
DerSchmale/spirv4web
src/compiler/glsl/GLSLPrecision.ts
export enum GLSLPrecision { DontCare, Lowp, Mediump, Highp }
DerSchmale/spirv4web
src/compiler/glsl/GLSLFragmentOptions.ts
<reponame>DerSchmale/spirv4web<filename>src/compiler/glsl/GLSLFragmentOptions.ts import { GLSLPrecision } from "./GLSLPrecision"; export class GLSLFragmentOptions { // Add precision mediump float in ES targets when emitting GLES source. // Add precision highp int in ES targets when emitting GLES source. de...
DerSchmale/spirv4web
build/types/spirv/RayQueryCommittedIntersectionType.d.ts
export declare enum RayQueryCommittedIntersectionType { NoneKHR = 0, TriangleKHR = 1, GeneratedKHR = 2, Max = 2147483647 }
DerSchmale/spirv4web
build/types/common/Meta.d.ts
import { Bitset } from "./Bitset"; import { BuiltIn } from "../spirv/BuiltIn"; import { FPRoundingMode } from "../spirv/FPRoundingMode"; export declare class MetaDecorationExtended { flags: Bitset; values: Uint32Array; clone(): MetaDecorationExtended; } export declare class MetaDecoration { alias: strin...
DerSchmale/spirv4web
build/types/spirv/ExecutionModel.d.ts
export declare enum ExecutionModel { Vertex = 0, TessellationControl = 1, TessellationEvaluation = 2, Geometry = 3, Fragment = 4, GLCompute = 5, Kernel = 6, TaskNV = 5267, MeshNV = 5268, RayGenerationKHR = 5313, RayGenerationNV = 5313, IntersectionKHR = 5314, Intersec...
DerSchmale/spirv4web
build/types/spirv/Decoration.d.ts
export declare enum Decoration { RelaxedPrecision = 0, SpecId = 1, Block = 2, BufferBlock = 3, RowMajor = 4, ColMajor = 5, ArrayStride = 6, MatrixStride = 7, GLSLShared = 8, GLSLPacked = 9, CPacked = 10, BuiltIn = 11, NoPerspective = 13, Flat = 14, Patch = 15,...
DerSchmale/spirv4web
build/types/spirv/LinkageType.d.ts
export declare enum LinkageType { Export = 0, Import = 1, Max = 2147483647 }
DerSchmale/spirv4web
build/types/common/SPIRAccessChain.d.ts
<reponame>DerSchmale/spirv4web<gh_stars>0 import { IVariant } from "./IVariant"; import { Types } from "./Types"; import { StorageClass } from "../spirv/StorageClass"; export declare class SPIRAccessChain extends IVariant { static type: Types; basetype: TypeID; storage: StorageClass; base: string; d...
DerSchmale/spirv4web
src/spirv/SamplerFilterMode.ts
export enum SamplerFilterMode { Nearest = 0, Linear = 1, Max = 0x7fffffff }
DerSchmale/spirv4web
src/common/IVariant.ts
<reponame>DerSchmale/spirv4web<gh_stars>0 import { defaultCopy } from "../utils/defaultCopy"; import { ObjectPoolBase } from "../containers/ObjectPoolBase"; import { ObjectPool } from "../containers/ObjectPool"; export type IVariantType<T> = { type: TypeID, new(other: T): T } export abstract class IVariant { ...
DerSchmale/spirv4web
build/types/spirv/KernelProfilingInfoMask.d.ts
export declare enum KernelProfilingInfoMask { None = 0, CmdExecTime = 1 }
DerSchmale/spirv4web
src/spirv/FragmentShadingRateShift.ts
export enum FragmentShadingRateShift { Vertical2Pixels = 0, Vertical4Pixels = 1, Horizontal2Pixels = 2, Horizontal4Pixels = 3, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/utils/Pointer.ts
<filename>src/utils/Pointer.ts // this just wraps a value that we can share. Only useful for primitives. export class Pointer<T> { private value: T; constructor(value?: T) { this.value = value; } get(): T { return this.value; } set(value: T) { this.value = value; ...
DerSchmale/spirv4web
src/spirv/KernelProfilingInfoShift.ts
<filename>src/spirv/KernelProfilingInfoShift.ts export enum KernelProfilingInfoShift { CmdExecTime = 0, Max = 0x7fffffff, }
DerSchmale/spirv4web
src/compiler/glsl/GLSLOptions.ts
<reponame>DerSchmale/spirv4web import { GLSLVertexOptions } from "./GLSLVertexOptions"; import { GLSLFragmentOptions } from "./GLSLFragmentOptions"; // TODO: Remove options and code referring to it that isn't relevant for WebGL export class GLSLOptions { // The shading language version. Corresponds to #version $VA...
DerSchmale/spirv4web
build/types/compiler/glsl/PlsRemap.d.ts
<filename>build/types/compiler/glsl/PlsRemap.d.ts import { PlsFormat } from "./glsl"; export declare class PlsRemap { id: number; format: PlsFormat; constructor(id: number, format: PlsFormat); }
joscha/fast-glob
src/providers/filters/deep.spec.ts
<filename>src/providers/filters/deep.spec.ts import * as assert from 'assert'; import Settings, { Options } from '../../settings'; import * as tests from '../../tests'; import { EntryFilterFunction, Pattern } from '../../types'; import DeepFilter from './deep'; function getDeepFilterInstance(options?: Options): DeepF...
joscha/fast-glob
src/utils/path.ts
import * as path from 'path'; import { Pattern } from '../types'; const UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([*?|(){}[\]]|^!|[@+!](?=\())/g; /** * Designed to work only with simple paths: `dir\\file`. */ export function unixify(filepath: string): string { return filepath.replace(/\\/g, '/'); } export function make...
joscha/fast-glob
src/benchmark/runner.spec.ts
import * as assert from 'assert'; import Runner, { RunnerOptions, SuiteMeasures, SuitePackResult } from './runner'; class RunnerFakeProcess extends Runner { public execNodeProcess(): string { return '{"matches":1,"time":1,"memory":1}'; } } class RunnerFakeProcessError extends Runner { public execNodeProcess(): ...
joscha/fast-glob
src/providers/filters/entry.ts
<reponame>joscha/fast-glob import Settings from '../../settings'; import { Entry, EntryFilterFunction, MicromatchOptions, Pattern, PatternRe } from '../../types'; import * as utils from '../../utils'; export default class EntryFilter { public readonly index: Map<string, undefined> = new Map(); constructor(private r...
joscha/fast-glob
src/providers/filters/deep.ts
import Settings from '../../settings'; import { Entry, EntryFilterFunction, MicromatchOptions, Pattern, PatternRe } from '../../types'; import * as utils from '../../utils'; export default class DeepFilter { constructor(private readonly _settings: Settings, private readonly _micromatchOptions: MicromatchOptions) { } ...
joscha/fast-glob
src/utils/array.ts
export function flatten<T>(items: T[][]): T[] { return items.reduce((collection, item) => ([] as T[]).concat(collection, item), [] as T[]); }
joscha/fast-glob
src/benchmark/runner.ts
<filename>src/benchmark/runner.ts import * as fs from 'fs'; import * as path from 'path'; import { Options } from '../settings'; import Reporter from './reporter'; import * as utils from './utils'; import execa = require('execa'); // eslint-disable-line @typescript-eslint/no-require-imports export type RunnerOptions...
joscha/fast-glob
src/tests/index.ts
import * as entry from './utils/entry'; import * as errno from './utils/errno'; import * as task from './utils/task'; export { entry, errno, task };