repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/index.ts | export * from "./Deployer"; |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/routes.tsx | <gh_stars>1-10
import React from 'react';
import { ChooseContractPage } from './ChooseContractPage';
import { RouteDefinition } from '../routes.types';
import { CheckContractPage } from './CheckContractPage';
import { PrepareStoragePage } from './PrepareStoragePage';
import { PreviewDeployPage } from './PreviewDeployPa... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PrepareStoragePage/StorageBuilder/builders/RecordBuilder.tsx | <reponame>uconomy/tezos-builder-suite
import { NamePath } from "antd/lib/form/interface";
import React from "react";
import { renderBuilder } from '.';
import { UnwrappedMichelsonObject } from '../../michelsonStorageParser';
import "../StorageBuilder.css";
import { Builder, BuilderProps, extractAnnots } from "./Builde... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/DeployPage/index.ts | <reponame>uconomy/tezos-builder-suite<filename>frontend/src/routes/Deployer/DeployPage/index.ts
export * from './DeployPage';
|
uconomy/tezos-builder-suite | backend/src/domain/contract/index.ts | export * from './contract.types'; |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PreviewDeployPage/PreviewDeployPage.tsx | import { Layout, PageHeader, Tabs } from 'antd';
import React, { useCallback } from "react";
import { useTranslation } from "react-i18next";
import { useHistory } from 'react-router-dom';
import { CodeViewer } from "../../../shared/CodeViewer";
import { useDeployState } from "../state";
import "./PreviewDeployPage.css... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/DeployPage/DeployConsole/SignerManager/SignerManager.tsx | <filename>frontend/src/routes/Deployer/DeployPage/DeployConsole/SignerManager/SignerManager.tsx
import { UserOutlined, UserSwitchOutlined } from '@ant-design/icons';
import { useQuery } from '@apollo/client';
import { BeaconWallet } from '@taquito/beacon-wallet';
import { TezosToolkit } from '@taquito/taquito';
import ... |
uconomy/tezos-builder-suite | frontend/src/shared/Router/RouteComponent/RouterComponent.tsx | import React from "react";
import { RouteDefinition } from "../../../routes/routes.types";
import { Route } from 'react-router-dom';
export const RouteComponent: React.FC<RouteDefinition> = (route) => {
const Component = route.component;
return (
<Route
path={route.path}
render={(props: unknown) =... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/ChooseContractPage/ContractsList/index.ts | <gh_stars>1-10
export * from './ContractsList'; |
uconomy/tezos-builder-suite | backend/src/graphql/context.ts | <reponame>uconomy/tezos-builder-suite<filename>backend/src/graphql/context.ts<gh_stars>1-10
import { Contract } from "../domain/contract";
import { Endpoint } from "../domain/endpoint";
export type ApolloContext = {
contracts: Contract[];
endpoint: Endpoint;
onDeployCompleted?: (contract: Contract, address: stri... |
uconomy/tezos-builder-suite | backend/src/services/contract/contract.service.ts | <reponame>uconomy/tezos-builder-suite<filename>backend/src/services/contract/contract.service.ts
import { Contract } from "../../domain/contract";
import { ApolloContext } from "../../graphql/context";
export async function getContracts(context: ApolloContext): Promise<Contract[]> {
return context.contracts;
}
expo... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/DeployPage/DeployConsole/SignerManager/SignerCard/SignerCard.tsx | import React from 'react';
import { UserOutlined } from '@ant-design/icons';
import { useTranslation } from 'react-i18next';
import { ProgressCard } from '../../../../../../shared/ProgressCard';
export interface SignerCardProps {
signer?: string;
signWith?: 'wallet' | 'faucet' | 'privateKey';
}
export const Signe... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PreviewDeployPage/index.ts | export * from './PreviewDeployPage';
|
uconomy/tezos-builder-suite | frontend/src/shared/Tezos/Tezos.tsx |
import React from 'react';
import currency from 'currency.js';
import './Tezos.css';
export interface TezosProps {
value?: number;
className?: string;
mutez?: boolean;
}
const milliTezosOptions = {
symbol: 'mꜩ',
formatWithSymbol: true,
pattern: '# !',
negativePattern: '-# !'
};
const tezosOptions = ... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/ChooseContractPage/index.ts | <gh_stars>1-10
export * from './ChooseContractPage';
|
uconomy/tezos-builder-suite | frontend/src/graphql/contract/contract.mutations.ts | import { gql } from 'graphql-tag';
export const CONTRACT_DEPLOY_COMPLETED = gql`
mutation DeloyCompleted($contract: ContractInput!, $address: String!) {
deployCompleted(contract: $contract, address: $address)
}`;
|
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/DeployPage/DeployConsole/index.ts | <filename>frontend/src/routes/Deployer/DeployPage/DeployConsole/index.ts
export * from './DeployConsole'; |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PrepareStoragePage/StorageBuilder/index.ts | <reponame>uconomy/tezos-builder-suite
export * from './StorageBuilder'; |
uconomy/tezos-builder-suite | frontend/src/shared/ProgressCard/index.ts | <gh_stars>1-10
export * from './ProgressCard'; |
uconomy/tezos-builder-suite | frontend/src/graphql/endpoint/endpoint.queries.ts | <reponame>uconomy/tezos-builder-suite
import { gql } from 'graphql-tag';
export type { Endpoint, NetworkType, NetworkScope } from '../../../../backend/src/domain/endpoint';
export const GET_ENDPOINT = gql`
query GetEndpoint {
endpoint {
url
scope
protocolVersion
signerPrivateKey
faucet {
m... |
uconomy/tezos-builder-suite | backend/src/index.ts | import express from 'express';
import open from 'open';
import path from 'path';
import { createApolloServer, schema } from './graphql';
import { TezosBuilderSuiteContext, TezosBuilderSuiteOptions } from './types';
import { NetworkScope, NetworkType } from './domain/endpoint';
import { Contract } from "./domain/contrac... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PreviewDeployPage/PreviewViewer/index.ts | export * from './PreviewViewer'; |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PrepareStoragePage/index.ts | export * from './PrepareStoragePage';
|
uconomy/tezos-builder-suite | frontend/src/graphql/contract/contract.queries.ts | <filename>frontend/src/graphql/contract/contract.queries.ts
import { gql } from 'graphql-tag';
export type {
Contract,
} from '../../../../backend/src/domain/contract';
export const GET_CONTRACTS = gql`
query GetContracts {
contracts {
name
code
michelson
}
}`; |
uconomy/tezos-builder-suite | backend/src/graphql/endpoint/endpoint.typedefs.ts | import { gql } from "apollo-server-express";
export const typeDefs = gql`
extend type Query {
endpoint: Endpoint
}
type FaucetAccount {
mnemonic: String!
secret: String!
amount: String!
pkh: String!
password: String
email: String!
}
enum NetworkScope {
mainnet
testnet
... |
uconomy/tezos-builder-suite | backend/src/graphql/contract/contract.resolvers.ts | import contract from ".";
import { Contract } from "../../domain/contract";
import { deployCompleted, getContracts } from "../../services/contract";
import { ApolloContext } from "../context";
export const resolvers = {
Query: {
contracts: (parent: any, args: any, context: ApolloContext): Promise<Contract[]> => ... |
uconomy/tezos-builder-suite | backend/src/domain/endpoint/index.ts | export * from './endpoint.types'; |
uconomy/tezos-builder-suite | backend/src/types.ts | <reponame>uconomy/tezos-builder-suite
import { Contract } from "./domain/contract";
import { Endpoint } from "./domain/endpoint";
export type TezosBuilderSuiteOptions = {
port: number;
openBrowser: boolean;
};
export type TezosBuilderSuiteContext = {
contracts: Contract[];
endpoint: Endpoint;
onDeployComple... |
uconomy/tezos-builder-suite | backend/src/domain/contract/contract.types.ts | export type Contract = {
name: string;
code: string;
michelson: string;
} |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PrepareStoragePage/StorageBuilder/builders/BoolBuilder.tsx | <reponame>uconomy/tezos-builder-suite<gh_stars>1-10
import { Switch } from 'antd';
import React from "react";
import "../StorageBuilder.css";
import { Builder, BuilderProps } from "./Builder";
export const BoolBuilder: React.FC<BuilderProps> = (props) => {
const {
object,
index,
itemProps,
} = props;
... |
uconomy/tezos-builder-suite | frontend/src/routes/index.tsx | <gh_stars>1-10
import React from 'react';
import { Deployer } from './Deployer';
import { MenuConfig, RouteDefinition } from './routes.types';
export const routes: RouteDefinition[] = [
{
path: "deployer",
component: () => <Deployer />,
exact: true,
}
];
export const menus: MenuConfig = [
{
rout... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/ChooseContractPage/ContractsList/ContractsList.tsx | import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { List, Avatar } from 'antd';
import { FileTextOutlined } from '@ant-design/icons';
import { Contract } from '../../../../graphql/contract';
import "./ContractsList.css";
const { Item } = List;
export interface Contrac... |
uconomy/tezos-builder-suite | frontend/src/locales/translation/en/index.ts | import deployer from './deployer.json';
import common from './common.json';
const translation = {
deployer,
...common,
};
// Leave exports as they are here
const _translation = {
translation,
};
export default _translation;
|
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/ChooseContractPage/ChooseContractPage.tsx | import React, { useCallback, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Layout, PageHeader } from 'antd';
import { useQuery } from '@apollo/client';
import { Contract, GET_CONTRACTS } from "../../../graphql/contract";
import { useHistory } from 'react-router-dom';
impo... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/state.ts | import { createGlobalState } from 'react-hooks-global-state';
import { FormInstance } from 'antd';
import { Contract } from '../../graphql/contract';
import { BeaconWallet } from '@taquito/beacon-wallet';
import { TezosToolkit } from '@taquito/taquito';
import { Estimate } from '@taquito/taquito/dist/types/contract/es... |
uconomy/tezos-builder-suite | backend/src/graphql/endpoint/endpoint.resolvers.ts | <reponame>uconomy/tezos-builder-suite
import { Endpoint } from "../../domain/endpoint";
import { getEndpoint } from "../../services/endpoint";
import { ApolloContext } from "../context";
export const resolvers = {
Query: {
endpoint: (parent: any, args: any, context: ApolloContext): Promise<Endpoint> => {
... |
uconomy/tezos-builder-suite | frontend/src/graphql/index.ts | import {
ApolloClient,
InMemoryCache,
} from "@apollo/client";
export const graphqlClient = new ApolloClient({
uri: 'http://localhost:4000/graphql',
cache: new InMemoryCache()
});
|
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PrepareStoragePage/StorageBuilder/builders/OrBuilder.tsx | <reponame>uconomy/tezos-builder-suite
import { Select } from 'antd';
import React from "react";
import { renderBuilder } from '.';
import { UnwrappedMichelsonObject } from '../../michelsonStorageParser';
import "../StorageBuilder.css";
import { Builder, BuilderProps } from "./Builder";
export const OrBuilder: React.F... |
uconomy/tezos-builder-suite | frontend/src/index.tsx | <filename>frontend/src/index.tsx
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import reportWebVitals from './reportWebVitals';
import { ApolloProvider } from '@apollo/client';
import 'antd/dist/antd.css';
import './index.css';
import "./locales";
impo... |
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/Summary/Summary.tsx | <gh_stars>1-10
import { Steps, Button } from 'antd';
import { useTranslation } from 'react-i18next';
import { AimOutlined, SaveOutlined, CheckOutlined } from '@ant-design/icons';
import { useHistory } from 'react-router-dom';
import "./Summary.css";
import { useDeployState } from '../state';
const { Step } = Steps;
... |
uconomy/tezos-builder-suite | backend/src/graphql/contract/index.ts | <filename>backend/src/graphql/contract/index.ts
import { resolvers } from './contract.resolvers';
import { typeDefs } from './contract.typedefs';
export default {
typeDefs,
resolvers,
};
|
uconomy/tezos-builder-suite | frontend/src/shared/CodeViewer/CodeViewer.tsx | import React, { useEffect, useState } from 'react';
import Highlight, { defaultProps, Language } from 'prism-react-renderer';
import defaultTheme from 'prism-react-renderer/themes/vsDark';
import './prism-setup';
import './CodeViewer.css';
export type CodeViewerProps = {
className?: string;
code: string;
fileNa... |
uconomy/tezos-builder-suite | frontend/src/shared/Tezos/index.ts | export * from './Tezos';
|
uconomy/tezos-builder-suite | backend/src/graphql/endpoint/index.ts | <filename>backend/src/graphql/endpoint/index.ts
import { resolvers } from './endpoint.resolvers';
import { typeDefs } from './endpoint.typedefs';
export default {
typeDefs,
resolvers,
};
|
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PrepareStoragePage/StorageBuilder/builders/index.tsx | <filename>frontend/src/routes/Deployer/PrepareStoragePage/StorageBuilder/builders/index.tsx
import React from 'react';
import { FormItemProps } from 'antd';
import { UnwrappedMichelsonObject } from '../../michelsonStorageParser';
import { MapBuilder } from './MapBuilder';
import { BoolBuilder } from './BoolBuilder';
im... |
uconomy/tezos-builder-suite | frontend/src/graphql/endpoint/index.ts | <gh_stars>1-10
export * from './endpoint.queries';
|
uconomy/tezos-builder-suite | frontend/src/routes/Deployer/PrepareStoragePage/PrepareStoragePage.tsx | <reponame>uconomy/tezos-builder-suite
import React, { useCallback, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Layout, PageHeader, Tabs } from 'antd';
import { useHistory } from 'react-router-dom';
import "./PrepareStoragePage.css";
import { useDeployState } from "../st... |
ggoodman/json-schema-codec-generator | src/stub/schema.ts | <filename>src/stub/schema.ts
type JSONPrimitive = boolean | null | number | string;
type JSONValue =
| JSONPrimitive
| JSONValue[]
| {
[key: string]: JSONValue;
};
/**
* Core schema meta-schema
* @see http://json-schema.org/draft-07/schema#
*/
export type CoreSchemaMetaSchema = JSONSchema | boolean;
... |
ggoodman/json-schema-codec-generator | src/resolve.ts | <gh_stars>1-10
import resolveSpec, { AsyncOpts } from 'resolve';
export function resolveAsync(spec: string, options: AsyncOpts) {
return new Promise<string | undefined>((resolve, reject) =>
resolveSpec(spec, options, (err, resolved) => {
if (err && (err as any).code !== 'MODULE_NOT_FOUND') {
return... |
ggoodman/json-schema-codec-generator | src/stub/validator.ts | <gh_stars>1-10
import type { ErrorObject } from "ajv";
export class ValidationError extends Error {
static isValidationError(err: unknown): err is ValidationError {
return err instanceof this;
}
readonly validatorErrors: ErrorObject[];
readonly value: unknown;
constructor(schemaName: string, value: unk... |
ggoodman/json-schema-codec-generator | src/stub/codec.ts | <gh_stars>1-10
import { ValidationError } from './validator';
import type { Codec, ValidateFunction } from './types';
export class CodecImpl<T> implements Codec<T> {
Type!: T;
constructor(
readonly name: string,
readonly uri: string,
private validateFn: ValidateFunction<T>
) {}
/**
* Identify ... |
ggoodman/json-schema-codec-generator | test/index.ts | /// <reference types="jest" />
import Module from 'module';
import { Codec, generateCodecCode } from '../src';
import type { ErrorObject } from '../src/stub/types';
describe('Codec generation', () => {
it('will produce the expected code', async () => {
const { javaScript, schamaPathsToCodecNames, typeDefinition... |
ggoodman/json-schema-codec-generator | src/index.ts | import Ajv, { Options } from 'ajv';
import addFormats, { FormatOptions } from 'ajv-formats';
import standaloneCode from 'ajv/dist/standalone';
import * as Esbuild from 'esbuild-wasm';
import { JSONSchema, Parser } from 'json-schema-to-dts';
import { staticFiles } from './generated/embedded';
export { CodecImpl } from ... |
ggoodman/json-schema-codec-generator | src/cli.ts | <gh_stars>1-10
import Yargs from 'yargs';
import * as Path from 'path';
import { promises as Fs } from 'fs';
import type { SchemaEntry } from './index';
import fastGlob from 'fast-glob';
Yargs.help()
.strict()
.showHelpOnFail(true)
.command(
'$0 [path]',
false,
(args) => {
return args.options({... |
ggoodman/json-schema-codec-generator | src/stub/types.ts | <reponame>ggoodman/json-schema-codec-generator<gh_stars>1-10
export interface Codec<T> {
/**
* Identify function returning the given argument as a value matching the schema.
*
* This can be useful to use in non-TypeScript code to construct a valid object while
* benefitting from suggestions from a TypeScr... |
zhoulvming/mycrabs | client/src/app/app-routing.module.ts | <filename>client/src/app/app-routing.module.ts
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home';
import { TopicListComponent } from './topic-list';
import { TopicDetailComponent } from './topic-detail';
const routes: Routes = [
... |
zhoulvming/mycrabs | client/src/app/topic-reply/index.ts | <reponame>zhoulvming/mycrabs
export * from './topic-reply.component'; |
zhoulvming/mycrabs | client/src/app/shared/models/reply.ts | <gh_stars>0
export class Reply {
id: string;
content: string;
member: {
id: string,
username: string,
avatar_mini: string,
avatar_normal: string,
avatar_large: string
};
created: string;
last_modified: string;
} |
zhoulvming/mycrabs | client/src/app/topic-list/topic-list.component.ts | <filename>client/src/app/topic-list/topic-list.component.ts
// import { Component, OnInit } from '@angular/core';
import {
Component,
Input,
OnInit,
trigger,
state,
style,
transition,
animate
} from '@angular/core';
import {MdSidenav, MdDialog, MdDialogConfig} from "@angular/material";
import { Activ... |
zhoulvming/mycrabs | client/src/app/topic-reply/topic-reply.component.ts | import { Component, Input, OnInit } from '@angular/core';
import { TopicService } from '../shared/services/topic.service';
import { Reply } from '../shared/models/reply';
@Component({
selector: 'topic-reply',
templateUrl: './topic-reply.component.html',
styleUrls: ['./topic-reply.component.css']
})
export class ... |
zhoulvming/mycrabs | client/src/app/app.component.ts | <reponame>zhoulvming/mycrabs<gh_stars>0
import { Component } from '@angular/core';
import { ActivatedRoute, Router, Params } from '@angular/router';
import { AppUtil } from './shared/services/app.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scs... |
zhoulvming/mycrabs | client/src/app/topic-detail/topic-detail.component.ts | import { Component, Input, OnInit } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { Topic } from '../shared/models/topic';
import { Reply } from '../shared/models/reply';
import { AppState } from '../shared/services/app.service';
import { TopicReplyComponent } from '../topic-... |
zhoulvming/mycrabs | client/src/app/app.module.ts | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
// 在app.module.ts中引入MaterialModule
import { MaterialModule } from '@angular/material';
// 页面组件
import { AppComponent } from './... |
zhoulvming/mycrabs | client/src/app/shared/services/topic.service.ts | import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Topic } from '../models/topic';
import { Reply } from '../models/reply';
import 'rxjs/add/operator/toPromise';
@Injectable()
export class TopicService {
constructor(public http: Http) { }
private handleError(error: any): Pr... |
zhoulvming/mycrabs | client/src/app/topic-list/index.ts | export * from './topic-list.component'; |
zhoulvming/mycrabs | client/src/app/shared/models/topic.ts | <filename>client/src/app/shared/models/topic.ts
export class Topic {
id: string;
title: string;
created: string;
author_id: string;
author_name: string;
author_avatar_mini: string;
content: string = '';
replies_count: string;
content_url: string;
} |
DerSchmale/spirv4web | src/utils/set_compare.ts | <gh_stars>0
export function set_compare<T>(a: Set<T>, b: Set<T>): boolean
{
if (a.size !== b.size) return false;
for (let it = a.values(), val:T = null; (val = it.next().value); ) {
if (!b.has(val))
return false;
}
return true;
} |
DerSchmale/spirv4web | src/compiler/glsl/PlsRemap.ts | <reponame>DerSchmale/spirv4web
import { PlsFormat } from "./glsl";
export class PlsRemap
{
id: number;
format: PlsFormat;
constructor(id: number, format: PlsFormat)
{
this.id = id;
this.format = format;
}
} |
DerSchmale/spirv4web | build/types/spirv/SamplerFilterMode.d.ts | export declare enum SamplerFilterMode {
Nearest = 0,
Linear = 1,
Max = 2147483647
}
|
DerSchmale/spirv4web | src/common/SPIRFunction.ts | <reponame>DerSchmale/spirv4web<filename>src/common/SPIRFunction.ts
import { IVariant } from "./IVariant";
import { Types } from "./Types";
import { defaultClone, defaultCopy } from "../utils/defaultCopy";
export class SPIRFunctionParameter
{
type: TypeID;
id: ID;
read_count: number;
write_count: number... |
DerSchmale/spirv4web | src/compiler/OpcodeHandler.ts | import { SPIRBlock } from "../common/SPIRBlock";
import { SPIRFunction } from "../common/SPIRFunction";
import { Op } from "../spirv/Op";
export abstract class OpcodeHandler
{
abstract handle(opcode: Op, args: Uint32Array, length: number): boolean;
handle_terminator(_: SPIRBlock): boolean
{
return... |
DerSchmale/spirv4web | src/spirv/SelectionControlShift.ts | export enum SelectionControlShift {
Flatten = 0,
DontFlatten = 1,
Max = 0x7fffffff,
} |
DerSchmale/spirv4web | build/types/compiler/EntryPoint.d.ts | import { ExecutionModel } from "../spirv/ExecutionModel";
export declare class EntryPoint {
name: string;
execution_model: ExecutionModel;
constructor(name: string, model: ExecutionModel);
}
|
DerSchmale/spirv4web | build/types/utils/ensure_types.d.ts | <reponame>DerSchmale/spirv4web
export declare function uint32(value: number): number;
|
DerSchmale/spirv4web | src/compiler/CFGBuilder.ts | <reponame>DerSchmale/spirv4web<filename>src/compiler/CFGBuilder.ts
import { OpcodeHandler } from "./OpcodeHandler";
import { Compiler } from "./Compiler";
import { SPIRFunction } from "../common/SPIRFunction";
import { CFG } from "../cfg/CFG";
import { Op } from "../spirv/Op";
export class CFGBuilder extends OpcodeHan... |
DerSchmale/spirv4web | build/types/compiler/glsl/glsl.d.ts | export declare const GLSLstd450Version = 100;
export declare const GLSLstd450Revision = 3;
export declare enum GLSLstd450 {
Bad = 0,
Round = 1,
RoundEven = 2,
Trunc = 3,
FAbs = 4,
SAbs = 5,
FSign = 6,
SSign = 7,
Floor = 8,
Ceil = 9,
Fract = 10,
Radians = 11,
Degrees =... |
DerSchmale/spirv4web | build/types/spirv.d.ts | export declare const MagicNumber = 119734787;
export declare const Version = 66816;
export declare const Revision = 4;
export declare const OpCodeMask = 65535;
export declare const WordCountShift = 16;
export declare enum SourceLanguage {
SourceLanguageUnknown = 0,
SourceLanguageESSL = 1,
SourceLanguageGLSL... |
DerSchmale/spirv4web | src/utils/Pair.ts | <gh_stars>0
import { defaultClone, defaultCopy } from "./defaultCopy";
export class Pair<A, B>
{
first: A;
second: B;
constructor(first?: A, second?: B)
{
this.first = first;
this.second = second;
}
equals(b: Pair<A, B>): boolean
{
return this.first === b.first && ... |
DerSchmale/spirv4web | build/types/compiler/CFGBuilder.d.ts | import { OpcodeHandler } from "./OpcodeHandler";
import { Compiler } from "./Compiler";
import { SPIRFunction } from "../common/SPIRFunction";
import { CFG } from "../cfg/CFG";
import { Op } from "../spirv/Op";
export declare class CFGBuilder extends OpcodeHandler {
compiler: Compiler;
function_cfgs: CFG[];
... |
DerSchmale/spirv4web | build/types/parser/BlockMetaFlagBits.d.ts | <filename>build/types/parser/BlockMetaFlagBits.d.ts
export declare enum BlockMetaFlagBits {
LOOP_HEADER_BIT = 1,
CONTINUE_BIT = 2,
LOOP_MERGE_BIT = 4,
SELECTION_MERGE_BIT = 8,
MULTISELECT_MERGE_BIT = 16
}
|
DerSchmale/spirv4web | src/compiler/SpecializationConstant.ts | <reponame>DerSchmale/spirv4web
export class SpecializationConstant
{
// The ID of the specialization constant.
id: ConstantID;
// The constant ID of the constant, used in Vulkan during pipeline creation.
constant_id: number;
}; |
DerSchmale/spirv4web | src/spirv/ImageOperandsShift.ts | <reponame>DerSchmale/spirv4web
export 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... |
DerSchmale/spirv4web | src/compileIteration.ts | <gh_stars>0
import { Args, PLSArg, Remap } from "./Args";
import { Parser } from "./parser/Parser";
import { CompilerGLSL } from "./compiler/glsl/CompilerGLSL";
import { Resource, ShaderResources } from "./compiler/ShaderResources";
import { Compiler } from "./compiler/Compiler";
import { inherit_combined_sampler_bindi... |
DerSchmale/spirv4web | src/containers/ObjectPool.ts | <filename>src/containers/ObjectPool.ts
import { ObjectPoolBase } from "./ObjectPoolBase";
import { AnyConstructor, DefaultConstructor, FromConstructor } from "../common/ConstructorTypes";
// TODO: Actually use an object pool instead of relying on garbage collection
// doing it like this for now because we don't have ... |
DerSchmale/spirv4web | src/spirv/LinkageType.ts | export enum LinkageType {
Export = 0,
Import = 1,
Max = 0x7fffffff,
} |
DerSchmale/spirv4web | build/types/utils/Pair.d.ts | <gh_stars>0
export declare class Pair<A, B> {
first: A;
second: B;
constructor(first?: A, second?: B);
equals(b: Pair<A, B>): boolean;
clone(): Pair<A, B>;
}
|
DerSchmale/spirv4web | src/compiler/PhysicalBlockMeta.ts | export class PhysicalBlockMeta
{
alignment: number = 0;
} |
DerSchmale/spirv4web | src/spirv/spirv.ts | type Id = number;
export const MagicNumber = 0x07230203;
export const Version = 0x00010500;
export const Revision = 4;
export const OpCodeMask = 0xffff;
export const WordCountShift = 16;
|
DerSchmale/spirv4web | build/types/spirv/LoopControlShift.d.ts | <reponame>DerSchmale/spirv4web<filename>build/types/spirv/LoopControlShift.d.ts<gh_stars>0
export declare enum LoopControlShift {
Unroll = 0,
DontUnroll = 1,
DependencyInfinite = 2,
DependencyLength = 3,
MinIterations = 4,
MaxIterations = 5,
IterationMultiple = 6,
PeelCount = 7,
Part... |
DerSchmale/spirv4web | build/types/spirv/spirv.d.ts | <reponame>DerSchmale/spirv4web
export declare const MagicNumber = 119734787;
export declare const Version = 66816;
export declare const Revision = 4;
export declare const OpCodeMask = 65535;
export declare const WordCountShift = 16;
|
DerSchmale/spirv4web | src/common/ExtendedDecorations.ts | <reponame>DerSchmale/spirv4web
export enum ExtendedDecorations
{
// Marks if a buffer block is re-packed, i.e. member declaration might be subject to PhysicalTypeID remapping and padding.
BufferBlockRepacked = 0,
// A type in a buffer block might be declared with a different physical type than the logical ... |
DerSchmale/spirv4web | src/spirv/Scope.ts | <filename>src/spirv/Scope.ts
export enum Scope {
CrossDevice = 0,
Device = 1,
Workgroup = 2,
Subgroup = 3,
Invocation = 4,
QueueFamily = 5,
QueueFamilyKHR = 5,
ShaderCallKHR = 6,
Max = 0x7fffffff,
} |
DerSchmale/spirv4web | src/compiler/glsl/AccessChainFlagBits.ts | <reponame>DerSchmale/spirv4web<filename>src/compiler/glsl/AccessChainFlagBits.ts
export enum AccessChainFlagBits
{
INDEX_IS_LITERAL_BIT = 1 << 0,
CHAIN_ONLY_BIT = 1 << 1,
PTR_CHAIN_BIT = 1 << 2,
SKIP_REGISTER_EXPRESSION_READ_BIT = 1 << 3,
LITERAL_MSB_FORCE_ID = 1 << 4,
FLATTEN_ALL_MEMBERS_BIT = ... |
DerSchmale/spirv4web | build/types/Args.d.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 declare class Rename {
old_name: string;
new_name: string;
ex... |
DerSchmale/spirv4web | build/types/common/SPIREntryPoint.d.ts | import { Bitset } from "./Bitset";
import { ExecutionModel } from "../spirv/ExecutionModel";
declare class SPIREntryPointWorkgroupSize {
x: number;
y: number;
z: number;
id_x: number;
id_y: number;
id_z: number;
constant: number;
clone(): SPIREntryPointWorkgroupSize;
}
export declare cla... |
DerSchmale/spirv4web | src/common/Meta.ts | import { Bitset } from "./Bitset";
import { BuiltIn } from "../spirv/BuiltIn";
import { FPRoundingMode } from "../spirv/FPRoundingMode";
import { defaultClone } from "../utils/defaultCopy";
import { ExtendedDecorations } from "./ExtendedDecorations";
export class MetaDecorationExtended
{
flags: Bitset = new Bitset... |
DerSchmale/spirv4web | src/common/AccessChainMeta.ts | export class AccessChainMeta
{
storage_physical_type: number = 0;
need_transpose: boolean = false;
storage_is_packed: boolean = false;
storage_is_invariant: boolean = false;
flattened_struct: boolean = false;
} |
DerSchmale/spirv4web | src/common/SPIRString.ts | <filename>src/common/SPIRString.ts
import { IVariant } from "./IVariant";
import { Types } from "./Types";
import { defaultCopy } from "../utils/defaultCopy";
export class SPIRString extends IVariant
{
static type = Types.String;
str: string;
constructor(other: SPIRString);
constructor(str: string);
... |
DerSchmale/spirv4web | src/spirv/MemorySemanticsMask.ts | <filename>src/spirv/MemorySemanticsMask.ts
export enum MemorySemanticsMask {
None = 0,
Acquire = 0x00000002,
Release = 0x00000004,
AcquireRelease = 0x00000008,
SequentiallyConsistent = 0x00000010,
UniformMemory = 0x00000040,
SubgroupMemory = 0x00000080,
WorkgroupMemory = 0x00000100,
... |
DerSchmale/spirv4web | build/types/common/ExtendedDecorations.d.ts | export declare enum ExtendedDecorations {
BufferBlockRepacked = 0,
PhysicalTypeID = 1,
PhysicalTypePacked = 2,
PaddingTarget = 3,
SPIRVCrossDecorationInterfaceMemberIndex = 4,
SPIRVCrossDecorationInterfaceOrigID = 5,
SPIRVCrossDecorationResourceIndexPrimary = 6,
SPIRVCrossDecorationResou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.