make compilation sucess

This commit is contained in:
jerrywwl
2018-12-28 18:35:07 +08:00
parent 2b8aa22a1a
commit a018da8891
15 changed files with 48 additions and 50 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { GFXBuffer } from './gfx-buffer';
import { GFXTextureView } from './gfx-texture-view';
import { GFXSampler } from './gfx-sampler';
export const enum GFXBindingType {
export enum GFXBindingType {
UNKNOWN,
UNIFORM_BUFFER,
SAMPLER,
+3 -3
View File
@@ -1,7 +1,7 @@
import { GFXDevice } from './gfx-device';
import { BufferView } from './gfx-define';
export const enum GFXBufferUsageBit {
export enum GFXBufferUsageBit {
NONE = 0,
TRANSFER_SRC = 0x1,
TRANSFER_DST = 0x2,
@@ -13,7 +13,7 @@ export const enum GFXBufferUsageBit {
export type GFXBufferUsage = GFXBufferUsageBit;
export const enum GFXMemoryUsageBit {
export enum GFXMemoryUsageBit {
NONE = 0,
DEVICE = 0x1,
HOST = 0x2,
@@ -21,7 +21,7 @@ export const enum GFXMemoryUsageBit {
export type GFXMemoryUsage = GFXMemoryUsageBit;
export const enum GFXBufferAccessBit {
export enum GFXBufferAccessBit {
NONE = 0,
READ = 0x1,
WRITE = 0x2,
+1 -1
View File
@@ -33,7 +33,7 @@ export class GFXBufferTextureCopy {
texSubres: GFXTextureSubres = new GFXTextureSubres;
};
export const enum GFXCommandBufferType {
export enum GFXCommandBufferType {
PRIMARY,
SECONDARY,
};
+2 -2
View File
@@ -1,5 +1,5 @@
// Extensions
export const enum WebGLEXT {
export enum WebGLEXT {
COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0,
COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1,
COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2,
@@ -58,7 +58,7 @@ export enum GFXType {
COUNT,
};
export const enum GFXFormat {
export enum GFXFormat {
UNKNOWN,
+1 -1
View File
@@ -13,7 +13,7 @@ import { GFXCommandBufferInfo, GFXCommandBuffer } from './gfx-command-buffer';
import { GFXCommandAllocatorInfo, GFXCommandAllocator } from './gfx-command-allocator';
import { GFXWindowInfo, GFXWindow } from './gfx-window';
export const enum GFXFeature {
export enum GFXFeature {
};
export interface GFXDeviceInfo {
+9 -10
View File
@@ -1,11 +1,10 @@
import { GFXDevice } from './gfx-device';
import { GFX_MAX_VERTEX_ATTRIBUTES, GFXFormat } from './gfx-define';
import { GFXShader } from './gfx-shader';
import { GFXRenderPass } from './gfx-render-pass';
import { GFXPipelineLayout } from './gfx-pipeline-layout';
import { GFXInputAttribute } from './gfx-input-assembler';
export const enum GFXPrimitiveMode {
export enum GFXPrimitiveMode {
POINT_LIST,
LINE_LIST,
LINE_STRIP,
@@ -22,24 +21,24 @@ export const enum GFXPrimitiveMode {
ISO_LINE_LIST,
};
export const enum GFXPolygonMode {
export enum GFXPolygonMode {
FILL,
LINE,
POINT,
};
export const enum GFXShadeModel {
export enum GFXShadeModel {
GOURAND,
FLAT,
};
export const enum GFXCullMode {
export enum GFXCullMode {
NONE,
FRONT,
BACK,
};
export const enum GFXComparisonFunc {
export enum GFXComparisonFunc {
NEVER,
LESS,
EQUAL,
@@ -50,7 +49,7 @@ export const enum GFXComparisonFunc {
ALWAYS,
};
export const enum GFXStencilOp {
export enum GFXStencilOp {
KEEP,
ZERO,
REPLACE,
@@ -61,7 +60,7 @@ export const enum GFXStencilOp {
DECR_WRAP,
};
export const enum GFXBlendOp {
export enum GFXBlendOp {
ADD,
SUB,
REV_SUB,
@@ -69,7 +68,7 @@ export const enum GFXBlendOp {
MAX,
};
export const enum GFXBlendFactor {
export enum GFXBlendFactor {
ZERO,
ONE,
SRC_ALPHA,
@@ -87,7 +86,7 @@ export const enum GFXBlendFactor {
ONE_MINUS_CONSTANT_ALPHA,
};
export const enum GFXColorMask {
export enum GFXColorMask {
NONE = 0x0,
R = 0x1,
G = 0x2,
+1 -1
View File
@@ -1,6 +1,6 @@
import { GFXDevice } from './gfx-device';
export const enum GFXQueueType {
export enum GFXQueueType {
GRAPHICS,
COMPUTE,
TRANSFER,
+5 -5
View File
@@ -2,7 +2,7 @@ import { GFXFormat, GFXFormatInfo } from './gfx-define';
import { GFXDevice } from './gfx-device';
// Enumeration all possible values of operations to be performed on initially Loading a Framebuffer Object.
export const enum GFXLoadOp
export enum GFXLoadOp
{
LOAD, // Load the contents from the fbo from previous
CLEAR, // Clear the fbo
@@ -10,13 +10,13 @@ export const enum GFXLoadOp
};
// Enumerates all possible values of operations to be performed when Storing to a Framebuffer Object.
export const enum GFXStoreOp
export enum GFXStoreOp
{
STORE, // Write the source to the destination
DISCARD, // Don't write the source to the destination
};
export const enum GFXTextureLayout
export enum GFXTextureLayout
{
UNDEFINED,
GENERAL,
@@ -40,7 +40,7 @@ export class GFXColorAttachment
endLayout : GFXTextureLayout = GFXTextureLayout.COLOR_ATTACHMENT_OPTIMAL;
};
export class GFXDepthStencilAttachment
export class GFXDepthStencilAttachment
{
format : GFXFormat = GFXFormat.UNKNOWN;
depthLoadOp : GFXLoadOp = GFXLoadOp.CLEAR;
@@ -52,7 +52,7 @@ export class GFXDepthStencilAttachment
endLayout : GFXTextureLayout = GFXTextureLayout.DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
};
export const enum GFXPipelineBindPoint
export enum GFXPipelineBindPoint
{
GRAPHICS,
COMPUTE,
+2 -2
View File
@@ -1,14 +1,14 @@
import { GFXDevice } from './gfx-device';
import { GFXComparisonFunc } from './gfx-pipeline-state';
export const enum GFXFilter {
export enum GFXFilter {
NONE,
POINT,
LINEAR,
ANISOTROPIC,
};
export const enum GFXAddress {
export enum GFXAddress {
WRAP,
MIRROR,
CLAMP,
+1 -1
View File
@@ -2,7 +2,7 @@ import { GFXDevice } from './gfx-device';
import { GFXBinding } from './gfx-binding-layout';
import { GFXType } from './gfx-define';
export const enum GFXShaderType {
export enum GFXShaderType {
VERTEX,
HULL,
DOMAIN,
+1 -1
View File
@@ -2,7 +2,7 @@ import { GFXFormat, GFXFormatInfo } from './gfx-define';
import { GFXDevice } from './gfx-device';
import { GFXTexture } from './gfx-texture';
export const enum GFXTextureViewType {
export enum GFXTextureViewType {
TV1D,
TV2D,
TV3D,
+3 -3
View File
@@ -1,13 +1,13 @@
import { GFXFormat, GFXFormatInfo } from './gfx-define';
import { GFXDevice } from './gfx-device';
export const enum GFXTextureType {
export enum GFXTextureType {
TEX1D,
TEX2D,
TEX3D,
};
export const enum GFXTextureUsageBit {
export enum GFXTextureUsageBit {
NONE = 0,
TRANSFER_SRC = 0x1,
TRANSFER_DST = 0x2,
@@ -21,7 +21,7 @@ export const enum GFXTextureUsageBit {
export type GFXTextureUsage = GFXTextureUsageBit;
export const enum GFXTextureFlagBit {
export enum GFXTextureFlagBit {
NONE = 0,
GEN_MIPMAP = 0x1,
CUBEMAP = 0x2,
+14 -14
View File
@@ -16,20 +16,20 @@ import RenderBuffer from './render-buffer';
import FrameBuffer from './frame-buffer';
import Device from './device';
import { GFXDevice } from '../../../dist/cocos/renderer/gfx/gfx-device';
import { GFXBuffer } from '../../../dist/cocos/renderer/gfx/gfx-buffer';
import { GFXTexture } from '../../../dist/cocos/renderer/gfx/gfx-texture';
import { GFXTextureView } from '../../../dist/cocos/renderer/gfx/gfx-texture-view';
import { GFXSampler } from '../../../dist/cocos/renderer/gfx/gfx-sampler';
import { GFXShader } from '../../../dist/cocos/renderer/gfx/gfx-shader';
import { GFXInputAssembler } from '../../../dist/cocos/renderer/gfx/gfx-input-assembler';
import { GFXRenderPass } from '../../../dist/cocos/renderer/gfx/gfx-render-pass';
import { GFXFramebuffer } from '../../../dist/cocos/renderer/gfx/gfx-framebuffer';
import { GFXPipelineLayout } from '../../../dist/cocos/renderer/gfx/gfx-pipeline-layout';
import { GFXPipelineState } from '../../../dist/cocos/renderer/gfx/gfx-pipeline-state';
import { GFXCommandBuffer } from '../../../dist/cocos/renderer/gfx/gfx-command-buffer';
import { GFXQueue } from '../../../dist/cocos/renderer/gfx/gfx-queue';
import { WebGLGFXDevice } from '../../../dist/cocos/renderer/gfx/webgl/webgl-gfx-device';
import { GFXDevice } from './gfx-device';
import { GFXBuffer } from './gfx-buffer';
import { GFXTexture } from './gfx-texture';
import { GFXTextureView } from './gfx-texture-view';
import { GFXSampler } from './gfx-sampler';
import { GFXShader } from './gfx-shader';
import { GFXInputAssembler } from './gfx-input-assembler';
import { GFXRenderPass } from './gfx-render-pass';
import { GFXFramebuffer } from './gfx-framebuffer';
import { GFXPipelineLayout } from './gfx-pipeline-layout';
import { GFXPipelineState } from './gfx-pipeline-state';
import { GFXCommandBuffer } from './gfx-command-buffer';
import { GFXQueue } from './gfx-queue';
import { WebGLGFXDevice } from './webgl/webgl-gfx-device';
let gfx = {
// classes
+1 -1
View File
@@ -334,7 +334,7 @@ const WebGLBlendFactors: GLenum[] = [
WebGLRenderingContext.ONE_MINUS_CONSTANT_ALPHA,
];
export const enum WebGLCmd {
export enum WebGLCmd {
BEGIN_RENDER_PASS,
END_RENDER_PASS,
BIND_PIPELINE_STATE,
@@ -4,12 +4,11 @@ import { GFXTextureViewType } from "../gfx-texture-view";
import { GFXFormat, GFXType, BufferView } from "../gfx-define";
import { GFXColorAttachment, GFXDepthStencilAttachment } from "../gfx-render-pass";
import { GFXShaderType, GFXShaderMacro, GFXUniformBlock, GFXUniformSampler } from "../gfx-shader";
import { GFXBinding, GFXBindingType } from "../gfx-binding-layout";
import { GFXFilter, GFXAddress } from "../gfx-sampler";
import { GFXComparisonFunc, GFXRasterizerState, GFXDepthStencilState, GFXBlendState } from "../gfx-pipeline-state";
import { GFXBindingType } from "../gfx-binding-layout";
import { GFXRasterizerState, GFXDepthStencilState, GFXBlendState } from "../gfx-pipeline-state";
import { GFXInputAttribute } from "../gfx-input-assembler";
export const enum WebGLGPUObjectType {
export enum WebGLGPUObjectType {
UNKNOWN,
BUFFER,
TEXTURE,