type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
public encodeCommandArgAsNativeData(commandArg: NativeData) { this._commandStream.writeNativeData(commandArg); this._pending.push(commandArg); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public finishEncodingCommand() { if (!this._isCommandBufferScopeActive) { this._submit(); } }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
private _submit() { this._engine.submitCommands(); this._pending.length = 0; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public getHardwareScalingLevel(): number { return this._engine.getHardwareScalingLevel(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setHardwareScalingLevel(level: number): void { this._engine.setHardwareScalingLevel(level); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public dispose(): void { super.dispose(); if (this._boundBuffersVertexArray) { this._deleteVertexArray(this._boundBuffersVertexArray); } this._engine.dispose(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** @hidden */ public static _createNativeDataStream(): NativeDataStream { return new NativeDataStream(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Can be used to override the current requestAnimationFrame requester. * @param bindedRenderFunction * @param requester * @hidden */ protected _queueNewFrame(bindedRenderFunction: any, requester?: any): number { // Use the provided requestAnimationFrame, unless the requester i...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Override default engine behavior. * @param framebuffer */ public _bindUnboundFramebuffer(framebuffer: Nullable<WebGLFramebuffer>) { if (this._currentFramebuffer !== framebuffer) { if (this._currentFramebuffer) { this._commandBufferEncoder.startEncodingComma...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets host document * @returns the host document object */ public getHostDocument(): Nullable<Document> { return null; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public clear(color: Nullable<IColor4Like>, backBuffer: boolean, depth: boolean, stencil: boolean = false): void { if (this.useReverseDepthBuffer) { throw new Error("reverse depth buffer is not currently implemented"); } this._commandBufferEncoder.startEncodingCommand(_native.E...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public createIndexBuffer(indices: IndicesArray, updateable?: boolean): NativeDataBuffer { const data = this._normalizeIndexData(indices); const buffer = new NativeDataBuffer(); buffer.references = 1; buffer.is32Bits = data.BYTES_PER_ELEMENT === 4; if (data.byteLength) { ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public createVertexBuffer(vertices: DataArray, updateable?: boolean): NativeDataBuffer { const data = ArrayBuffer.isView(vertices) ? vertices : new Float32Array(vertices); const buffer = new NativeDataBuffer(); buffer.references = 1; if (data.byteLength) { buffer.native...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
protected _recordVertexArrayObject(vertexArray: any, vertexBuffers: { [key: string]: VertexBuffer }, indexBuffer: Nullable<NativeDataBuffer>, effect: Effect): void { if (indexBuffer) { this._engine.recordIndexBuffer(vertexArray, indexBuffer.nativeIndexBuffer!); } const attribu...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public bindBuffers(vertexBuffers: { [key: string]: VertexBuffer }, indexBuffer: Nullable<NativeDataBuffer>, effect: Effect): void { if (this._boundBuffersVertexArray) { this._deleteVertexArray(this._boundBuffersVertexArray); } this._boundBuffersVertexArray = this._engine.createV...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public recordVertexArrayObject(vertexBuffers: { [key: string]: VertexBuffer }, indexBuffer: Nullable<NativeDataBuffer>, effect: Effect): WebGLVertexArrayObject { const vertexArray = this._engine.createVertexArray(); this._recordVertexArrayObject(vertexArray, vertexBuffers, indexBuffer, effect); ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
private _deleteVertexArray(vertexArray: unknown) { this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_DELETEVERTEXARRAY); this._commandBufferEncoder.encodeCommandArgAsNativeData(vertexArray as NativeData); this._commandBufferEncoder.finishEncodingCommand(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public bindVertexArrayObject(vertexArray: WebGLVertexArrayObject): void { this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_BINDVERTEXARRAY); this._commandBufferEncoder.encodeCommandArgAsNativeData(vertexArray as NativeData); this._commandBufferEncoder.finishEncodingComm...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public releaseVertexArrayObject(vertexArray: WebGLVertexArrayObject) { this._deleteVertexArray(vertexArray); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public getAttributes(pipelineContext: IPipelineContext, attributesNames: string[]): number[] { const nativePipelineContext = pipelineContext as NativePipelineContext; return this._engine.getAttributes(nativePipelineContext.nativeProgram, attributesNames); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Draw a list of indexed primitives * @param fillMode defines the primitive to use * @param indexStart defines the starting index * @param indexCount defines the number of index to draw * @param instancesCount defines the number of instances to draw (if instantiation is enabled) ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Draw a list of unindexed primitives * @param fillMode defines the primitive to use * @param verticesStart defines the index of first vertex to draw * @param verticesCount defines the count of vertices to draw * @param instancesCount defines the number of instances to draw (if instant...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public createPipelineContext(): IPipelineContext { return new NativePipelineContext(this); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public createMaterialContext(): IMaterialContext | undefined { return undefined; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public createDrawContext(): IDrawContext | undefined { return undefined; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public _preparePipelineContext( pipelineContext: IPipelineContext, vertexSourceCode: string, fragmentSourceCode: string, createAsRaw: boolean, rawVertexSourceCode: string, rawFragmentSourceCode: string, rebuildRebind: any, defines: Nullable<string...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * @param pipelineContext * @hidden */ public _isRenderingStateCompiled(pipelineContext: IPipelineContext): boolean { // TODO: support async shader compilcation return true; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * @param pipelineContext * @param action * @hidden */ public _executeWhenRenderingStateIsCompiled(pipelineContext: IPipelineContext, action: () => void) { // TODO: support async shader compilcation action(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public createRawShaderProgram( pipelineContext: IPipelineContext, vertexCode: string, fragmentCode: string, context?: WebGLRenderingContext, transformFeedbackVaryings: Nullable<string[]> = null ): any { throw new Error("Not Supported"); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public createShaderProgram( pipelineContext: IPipelineContext, vertexCode: string, fragmentCode: string, defines: Nullable<string>, context?: WebGLRenderingContext, transformFeedbackVaryings: Nullable<string[]> = null ): any { this.onBeforeShaderCompi...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Inline functions in shader code that are marked to be inlined * @param code code to inline * @returns inlined code */ public inlineShaderCode(code: string): string { const sci = new ShaderCodeInliner(code); sci.debug = false; sci.processCode(); return sc...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
protected _setProgram(program: WebGLProgram): void { if (this._currentProgram !== program) { this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETPROGRAM); this._commandBufferEncoder.encodeCommandArgAsNativeData(program as NativeData); this._commandB...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public _deletePipelineContext(pipelineContext: IPipelineContext): void { const nativePipelineContext = pipelineContext as NativePipelineContext; if (nativePipelineContext && nativePipelineContext.nativeProgram) { this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_DELE...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public getUniforms(pipelineContext: IPipelineContext, uniformsNames: string[]): WebGLUniformLocation[] { const nativePipelineContext = pipelineContext as NativePipelineContext; return this._engine.getUniforms(nativePipelineContext.nativeProgram, uniformsNames); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public bindUniformBlock(pipelineContext: IPipelineContext, blockName: string, index: number): void { // TODO throw new Error("Not Implemented"); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public bindSamplers(effect: Effect): void { const nativePipelineContext = effect.getPipelineContext() as NativePipelineContext; this._setProgram(nativePipelineContext.nativeProgram); // TODO: share this with engine? const samplers = effect.getSamplers(); for (let index = ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setMatrix(uniform: WebGLUniformLocation, matrix: IMatrixLike): void { if (!uniform) { return; } const matrixArray = matrix.toArray() as Float32Array; this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETMATRIX); this._commandBuffer...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public getRenderWidth(useScreen = false): number { if (!useScreen && this._currentRenderTarget) { return this._currentRenderTarget.width; } return this._engine.getRenderWidth(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public getRenderHeight(useScreen = false): number { if (!useScreen && this._currentRenderTarget) { return this._currentRenderTarget.height; } return this._engine.getRenderHeight(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setViewport(viewport: IViewportLike, requiredWidth?: number, requiredHeight?: number): void { this._cachedViewport = viewport; this._engine.setViewPort(viewport.x, viewport.y, viewport.width, viewport.height); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setState(culling: boolean, zOffset: number = 0, force?: boolean, reverseSide = false, cullBackFaces?: boolean, stencil?: IStencilState, zOffsetUnits: number = 0): void { this._zOffset = zOffset; this._zOffsetUnits = zOffsetUnits; this._commandBufferEncoder.startEncodingCommand(_nati...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the client rect of native canvas. Needed for InputManager. * @returns a client rectangle */ public getInputElementClientRect(): Nullable<DOMRect> { const rect = { bottom: this.getRenderHeight(), height: this.getRenderHeight(), left: 0, ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Set the z offset Factor to apply to current rendering * @param value defines the offset to apply */ public setZOffset(value: number): void { if (value !== this._zOffset) { this._zOffset = value; this._commandBufferEncoder.startEncodingCommand(_native.Engine.COM...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current value of the zOffset Factor * @returns the current zOffset Factor state */ public getZOffset(): number { return this._zOffset; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Set the z offset Units to apply to current rendering * @param value defines the offset to apply */ public setZOffsetUnits(value: number): void { if (value !== this._zOffsetUnits) { this._zOffsetUnits = value; this._commandBufferEncoder.startEncodingCommand(_nat...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current value of the zOffset Units * @returns the current zOffset Units state */ public getZOffsetUnits(): number { return this._zOffsetUnits; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Enable or disable depth buffering * @param enable defines the state to set */ public setDepthBuffer(enable: boolean): void { this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETDEPTHTEST); this._commandBufferEncoder.encodeCommandArgAsUInt32(enable ? this._...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets a boolean indicating if depth writing is enabled * @returns the current depth writing state */ public getDepthWrite(): boolean { return this._depthWrite; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public getDepthFunction(): Nullable<number> { switch (this._currentDepthTest) { case _native.Engine.DEPTH_TEST_NEVER: return Constants.NEVER; case _native.Engine.DEPTH_TEST_ALWAYS: return Constants.ALWAYS; case _native.Engine.DEPTH_TEST_...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setDepthFunction(depthFunc: number) { let nativeDepthFunc = 0; switch (depthFunc) { case Constants.NEVER: nativeDepthFunc = _native.Engine.DEPTH_TEST_NEVER; break; case Constants.ALWAYS: nativeDepthFunc = _native.Engi...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Enable or disable depth writing * @param enable defines the state to set */ public setDepthWrite(enable: boolean): void { this._depthWrite = enable; this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETDEPTHWRITE); this._commandBufferEncoder.encode...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Enable or disable color writing * @param enable defines the state to set */ public setColorWrite(enable: boolean): void { this._colorWrite = enable; this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETCOLORWRITE); this._commandBufferEncoder.encode...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets a boolean indicating if color writing is enabled * @returns the current color writing state */ public getColorWrite(): boolean { return this._colorWrite; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
private applyStencil(): void { this._setStencil( this._stencilMask, this._getStencilOpFail(this._stencilOpStencilFail), this._getStencilDepthFail(this._stencilOpDepthFail), this._getStencilDepthPass(this._stencilOpStencilDepthPass), this._getSte...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
private _setStencil(mask: number, stencilOpFail: number, depthOpFail: number, depthOpPass: number, func: number, ref: number) { this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETSTENCIL); this._commandBufferEncoder.encodeCommandArgAsUInt32(mask); this._commandBufferEn...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Enable or disable the stencil buffer * @param enable defines if the stencil buffer must be enabled or disabled */ public setStencilBuffer(enable: boolean): void { this._stencilTest = enable; if (enable) { this.applyStencil(); } else { this._se...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets a boolean indicating if stencil buffer is enabled * @returns the current stencil buffer state */ public getStencilBuffer(): boolean { return this._stencilTest; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current stencil operation when stencil passes * @returns a number defining stencil operation to use when stencil passes */ public getStencilOperationPass(): number { return this._stencilOpStencilDepthPass; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the stencil operation to use when stencil passes * @param operation defines the stencil operation to use when stencil passes */ public setStencilOperationPass(operation: number): void { this._stencilOpStencilDepthPass = operation; this.applyStencil(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the current stencil mask * @param mask defines the new stencil mask to use */ public setStencilMask(mask: number): void { this._stencilMask = mask; this.applyStencil(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the current stencil function * @param stencilFunc defines the new stencil function to use */ public setStencilFunction(stencilFunc: number) { this._stencilFunc = stencilFunc; this.applyStencil(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the current stencil reference * @param reference defines the new stencil reference to use */ public setStencilFunctionReference(reference: number) { this._stencilFuncRef = reference; this.applyStencil(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the current stencil mask * @param mask defines the new stencil mask to use */ public setStencilFunctionMask(mask: number) { this._stencilFuncMask = mask; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the stencil operation to use when stencil fails * @param operation defines the stencil operation to use when stencil fails */ public setStencilOperationFail(operation: number): void { this._stencilOpStencilFail = operation; this.applyStencil(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the stencil operation to use when depth fails * @param operation defines the stencil operation to use when depth fails */ public setStencilOperationDepthFail(operation: number): void { this._stencilOpDepthFail = operation; this.applyStencil(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current stencil mask * @returns a number defining the new stencil mask to use */ public getStencilMask(): number { return this._stencilMask; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current stencil function * @returns a number defining the stencil function to use */ public getStencilFunction(): number { return this._stencilFunc; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current stencil reference value * @returns a number defining the stencil reference value to use */ public getStencilFunctionReference(): number { return this._stencilFuncRef; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current stencil mask * @returns a number defining the stencil mask to use */ public getStencilFunctionMask(): number { return this._stencilFuncMask; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current stencil operation when stencil fails * @returns a number defining stencil operation to use when stencil fails */ public getStencilOperationFail(): number { return this._stencilOpStencilFail; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current stencil operation when depth fails * @returns a number defining stencil operation to use when depth fails */ public getStencilOperationDepthFail(): number { return this._stencilOpDepthFail; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets alpha constants used by some alpha blending modes * @param r defines the red component * @param g defines the green component * @param b defines the blue component * @param a defines the alpha component */ public setAlphaConstants(r: number, g: number, b: number, a: number...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Sets the current alpha mode * @param mode defines the mode to use (one of the BABYLON.Constants.ALPHA_XXX) * @param noDepthWriteChange defines if depth writing state should remains unchanged (false by default) * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rende...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Gets the current alpha mode * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered * @returns the current alpha mode */ public getAlphaMode(): number { return this._alphaMode; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setInt(uniform: WebGLUniformLocation, int: number): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETINT); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as any as NativeData); ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setIntArray(uniform: WebGLUniformLocation, array: Int32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETINTARRAY); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as any ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setIntArray2(uniform: WebGLUniformLocation, array: Int32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETINTARRAY2); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as an...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setIntArray3(uniform: WebGLUniformLocation, array: Int32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETINTARRAY3); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as an...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setIntArray4(uniform: WebGLUniformLocation, array: Int32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETINTARRAY4); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as an...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloatArray(uniform: WebGLUniformLocation, array: Float32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOATARRAY); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform a...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloatArray2(uniform: WebGLUniformLocation, array: Float32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOATARRAY2); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloatArray3(uniform: WebGLUniformLocation, array: Float32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOATARRAY3); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloatArray4(uniform: WebGLUniformLocation, array: Float32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOATARRAY4); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setArray(uniform: WebGLUniformLocation, array: number[]): boolean { if (!uniform) { return false; } return this.setFloatArray(uniform, new Float32Array(array)); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setArray2(uniform: WebGLUniformLocation, array: number[]): boolean { if (!uniform) { return false; } return this.setFloatArray2(uniform, new Float32Array(array)); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setArray3(uniform: WebGLUniformLocation, array: number[]): boolean { if (!uniform) { return false; } return this.setFloatArray3(uniform, new Float32Array(array)); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setArray4(uniform: WebGLUniformLocation, array: number[]): boolean { if (!uniform) { return false; } return this.setFloatArray4(uniform, new Float32Array(array)); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setMatrices(uniform: WebGLUniformLocation, matrices: Float32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETMATRICES); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setMatrix3x3(uniform: WebGLUniformLocation, matrix: Float32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETMATRIX3X3); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setMatrix2x2(uniform: WebGLUniformLocation, matrix: Float32Array): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETMATRIX2X2); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloat(uniform: WebGLUniformLocation, value: number): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOAT); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as any as NativeD...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloat2(uniform: WebGLUniformLocation, x: number, y: number): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOAT2); this._commandBufferEncoder.encodeCommandArgAsNativeData(uniform as any a...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloat3(uniform: WebGLUniformLocation, x: number, y: number, z: number): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOAT3); this._commandBufferEncoder.encodeCommandArgAsNativeData(unifo...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setFloat4(uniform: WebGLUniformLocation, x: number, y: number, z: number, w: number): boolean { if (!uniform) { return false; } this._commandBufferEncoder.startEncodingCommand(_native.Engine.COMMAND_SETFLOAT4); this._commandBufferEncoder.encodeCommandArgAsNativ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setColor3(uniform: WebGLUniformLocation, color3: IColor3Like): boolean { if (!uniform) { return false; } this.setFloat3(uniform, color3.r, color3.g, color3.b); return true; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public setColor4(uniform: WebGLUniformLocation, color3: IColor3Like, alpha: number): boolean { if (!uniform) { return false; } this.setFloat4(uniform, color3.r, color3.g, color3.b, alpha); return true; }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
public wipeCaches(bruteForce?: boolean): void { if (this.preventCacheWipeBetweenFrames) { return; } this.resetTextureCache(); this._currentEffect = null; if (bruteForce) { this._currentProgram = null; this._stencilStateComposer.res...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
protected _createTexture(): WebGLTexture { return this._engine.createTexture(); }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
protected _deleteTexture(texture: Nullable<WebGLTexture>): void { if (texture) { this._engine.deleteTexture(texture); } }
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript
MethodDeclaration
/** * Update the content of a dynamic texture * @param texture defines the texture to update * @param canvas defines the canvas containing the source * @param invertY defines if data must be stored with Y axis inverted * @param premulAlpha defines if alpha is stored as premultiplied ...
m1911star/Babylon.js
packages/dev/core/src/Engines/nativeEngine.ts
TypeScript