@feng3d/webgpu
Preparing search index...
WebGPU
Class WebGPU
WebGPU
Index
Constructors
constructor
Properties
device
Methods
copy
Depth
Texture
destory
Texture
destroy
init
read
Buffer
read
Pixels
submit
texture
Invert
Y
Premultiply
Alpha
Constructors
constructor
new
WebGPU
(
device
?:
GPUDevice
)
:
WebGPU
Parameters
Optional
device
:
GPUDevice
Returns
WebGPU
Properties
Readonly
device
device
:
GPUDevice
Methods
copy
Depth
Texture
copyDepthTexture
(
sourceTexture
:
TextureLike
,
targetTexture
:
TextureLike
)
:
void
Parameters
sourceTexture
:
TextureLike
targetTexture
:
TextureLike
Returns
void
destory
Texture
destoryTexture
(
texture
:
TextureLike
)
:
void
Parameters
texture
:
TextureLike
Returns
void
destroy
destroy
()
:
void
Returns
void
init
init
(
options
?:
GPURequestAdapterOptions
,
descriptor
?:
GPUDeviceDescriptor
,
)
:
Promise
<
WebGPU
>
初始化 WebGPU 获取 GPUDevice 。
Parameters
Optional
options
:
GPURequestAdapterOptions
Optional
descriptor
:
GPUDeviceDescriptor
Returns
Promise
<
WebGPU
>
read
Buffer
readBuffer
(
buffer
:
Buffer
,
offset
?:
number
,
size
?:
number
)
:
Promise
<
ArrayBuffer
>
Parameters
buffer
:
Buffer
Optional
offset
:
number
Optional
size
:
number
Returns
Promise
<
ArrayBuffer
>
read
Pixels
readPixels
(
gpuReadPixels
:
ReadPixels
,
)
:
Promise
<
|
Int8Array
<
ArrayBuffer
>
|
Uint8Array
<
ArrayBuffer
>
|
Int32Array
<
ArrayBuffer
>
|
Int16Array
<
ArrayBuffer
>
|
Uint32Array
<
ArrayBuffer
>
|
Float32Array
<
ArrayBuffer
>
|
Uint16Array
<
ArrayBuffer
>
,
>
Parameters
gpuReadPixels
:
ReadPixels
Returns
Promise
<
|
Int8Array
<
ArrayBuffer
>
|
Uint8Array
<
ArrayBuffer
>
|
Int32Array
<
ArrayBuffer
>
|
Int16Array
<
ArrayBuffer
>
|
Uint32Array
<
ArrayBuffer
>
|
Float32Array
<
ArrayBuffer
>
|
Uint16Array
<
ArrayBuffer
>
,
>
submit
submit
(
submit
:
Submit
)
:
void
Parameters
submit
:
Submit
Returns
void
texture
Invert
Y
Premultiply
Alpha
textureInvertYPremultiplyAlpha
(
texture
:
TextureLike
,
options
:
{
invertY
?:
boolean
;
premultiplyAlpha
?:
boolean
}
,
)
:
void
Parameters
texture
:
TextureLike
options
:
{
invertY
?:
boolean
;
premultiplyAlpha
?:
boolean
}
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
device
Methods
copy
Depth
Texture
destory
Texture
destroy
init
read
Buffer
read
Pixels
submit
texture
Invert
Y
Premultiply
Alpha
@feng3d/webgpu
Loading...
WebGPU