Skip to content

Class: QuadShader

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

new QuadShader(vs?, fs?): QuadShader

Parameters

NameTypeDefault value
vsstring'QuadGlsl_vs'
fsstring'QuadGlsl_fs'

Returns

QuadShader

Overrides

Shader.constructor

Defined in

src/loader/parser/prefab/mats/shader/QuadShader.ts:15

Properties

computes

computes: RenderShaderCompute[]

Inherited from

Shader.computes

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:19


passShader

passShader: Map<PassType, RenderShaderPass[]>

Inherited from

Shader.passShader

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:21

Methods

addRenderPass

addRenderPass(renderShader, index?): void

Parameters

NameTypeDefault value
renderShaderRenderShaderPassundefined
indexnumber-1

Returns

void

Inherited from

Shader.addRenderPass

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:28


removeShader

removeShader(renderShader, index?): void

Parameters

NameTypeDefault value
renderShaderRenderShaderPassundefined
indexnumber-1

Returns

void

Inherited from

Shader.removeShader

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:38


removeShaderByIndex

removeShaderByIndex(passType, index?): void

Parameters

NameTypeDefault value
passTypePassTypeundefined
indexnumber-1

Returns

void

Inherited from

Shader.removeShaderByIndex

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:52


getSubShaders

getSubShaders(passType): RenderShaderPass[]

Parameters

NameType
passTypePassType

Returns

RenderShaderPass[]

Inherited from

Shader.getSubShaders

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:63


hasSubShaders

hasSubShaders(passType): boolean

Parameters

NameType
passTypePassType

Returns

boolean

Inherited from

Shader.hasSubShaders

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:67


getDefaultShaders

getDefaultShaders(): RenderShaderPass[]

Returns

RenderShaderPass[]

Inherited from

Shader.getDefaultShaders

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:72


getDefaultColorShader

getDefaultColorShader(): RenderShaderPass

Returns

RenderShaderPass

Inherited from

Shader.getDefaultColorShader

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:76


setDefine

setDefine(arg0, arg1): void

Parameters

NameType
arg0string
arg1boolean

Returns

void

Inherited from

Shader.setDefine

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:80


hasDefine

hasDefine(arg0): boolean

Parameters

NameType
arg0string

Returns

boolean

Inherited from

Shader.hasDefine

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:88


deleteDefine

deleteDefine(arg0): void

Parameters

NameType
arg0string

Returns

void

Inherited from

Shader.deleteDefine

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:99


setUniform

setUniform(arg0, arg1): void

Parameters

NameType
arg0string
arg1any

Returns

void

Inherited from

Shader.setUniform

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:107


setUniformFloat

setUniformFloat(arg0, arg1): void

Parameters

NameType
arg0string
arg1number

Returns

void

Inherited from

Shader.setUniformFloat

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:115


setUniformVector2

setUniformVector2(arg0, arg1): void

Parameters

NameType
arg0string
arg1Vector2

Returns

void

Inherited from

Shader.setUniformVector2

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:123


setUniformVector3

setUniformVector3(arg0, arg1): void

Parameters

NameType
arg0string
arg1Vector3

Returns

void

Inherited from

Shader.setUniformVector3

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:131


setUniformVector4

setUniformVector4(arg0, arg1): void

Parameters

NameType
arg0string
arg1Vector4

Returns

void

Inherited from

Shader.setUniformVector4

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:139


setUniformColor

setUniformColor(arg0, arg1): void

Parameters

NameType
arg0string
arg1Color

Returns

void

Inherited from

Shader.setUniformColor

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:147


getUniform

getUniform(arg0): any

Parameters

NameType
arg0string

Returns

any

Inherited from

Shader.getUniform

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:155


getUniformFloat

getUniformFloat(arg0): number

Parameters

NameType
arg0string

Returns

number

Inherited from

Shader.getUniformFloat

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:159


getUniformVector2

getUniformVector2(arg0): Vector2

Parameters

NameType
arg0string

Returns

Vector2

Inherited from

Shader.getUniformVector2

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:163


getUniformVector3

getUniformVector3(arg0): Vector3

Parameters

NameType
arg0string

Returns

Vector3

Inherited from

Shader.getUniformVector3

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:167


getUniformVector4

getUniformVector4(arg0): Vector4

Parameters

NameType
arg0string

Returns

Vector4

Inherited from

Shader.getUniformVector4

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:171


getUniformColor

getUniformColor(arg0): Color

Parameters

NameType
arg0string

Returns

Color

Inherited from

Shader.getUniformColor

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:175


setTexture

setTexture(arg0, arg1): void

Parameters

NameType
arg0string
arg1Texture

Returns

void

Inherited from

Shader.setTexture

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:179


getTexture

getTexture(arg0): Texture

Parameters

NameType
arg0string

Returns

Texture

Inherited from

Shader.getTexture

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:188


setUniformBuffer

setUniformBuffer(arg0, arg1): void

Parameters

NameType
arg0string
arg1UniformGPUBuffer

Returns

void

Inherited from

Shader.setUniformBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:192


getUniformBuffer

getUniformBuffer(arg0): GPUBufferBase

Parameters

NameType
arg0string

Returns

GPUBufferBase

Inherited from

Shader.getUniformBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:200


setStorageBuffer

setStorageBuffer(arg0, arg1): void

Parameters

NameType
arg0string
arg1StorageGPUBuffer

Returns

void

Inherited from

Shader.setStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:204


getStorageBuffer

getStorageBuffer(arg0): StorageGPUBuffer

Parameters

NameType
arg0string

Returns

StorageGPUBuffer

Inherited from

Shader.getStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:212


setStructStorageBuffer

setStructStorageBuffer<T>(arg0, arg1): void

Type parameters

NameType
Textends Struct

Parameters

NameType
arg0string
arg1StructStorageGPUBuffer<T>

Returns

void

Inherited from

Shader.setStructStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:216


getStructStorageBuffer

getStructStorageBuffer(arg0): GPUBufferBase

Parameters

NameType
arg0string

Returns

GPUBufferBase

Inherited from

Shader.getStructStorageBuffer

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:224


noticeValueChange

noticeValueChange(): void

Returns

void

Inherited from

Shader.noticeValueChange

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:228


destroy

destroy(): void

Returns

void

Inherited from

Shader.destroy

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:236


clone

clone(): Shader

Returns

Shader

Inherited from

Shader.clone

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:240


applyUniform

applyUniform(): void

Returns

void

Inherited from

Shader.applyUniform

Defined in

src/gfx/graphics/webGpu/shader/Shader.ts:249