Interface WebGPUEngineOptions
Hierarchy
- ThinEngineOptions
- GPURequestAdapterOptions
- WebGPUEngineOptions
Index
Properties
- adapt
To Device Ratio - antialias
- audio
Engine - audio
Engine Options - deterministic
Lockstep - device
Descriptor - do
Not Handle Context Lost - do
Not Handle Touch Action - enableGPUDebug
Markers - force
Fallback Adapter - glslang
Options - limit
Device Ratio - lockstep
Max Steps - power
Preference - premultiplied
Alpha - stencil
- swap
Chain Format - time
Step - twgsl
Options - use
Exact Srgb Conversions - use
High Precision Matrix
Properties
Optional adapt To Device RatioSearch playground for adaptToDeviceRatio
Defines whether to adapt to the device's viewport characteristics (default: false)
Optional antialiasSearch playground for antialias
Defines whether MSAA is enabled on the canvas.
Optional audio EngineSearch playground for audioEngine
Defines if webaudio should be initialized as well
Optional audio Engine OptionsSearch playground for audioEngineOptions
Specifies options for the audio engine
Optional deterministic LockstepSearch playground for deterministicLockstep
Defines if animations should run using a deterministic lock step
Optional device DescriptorSearch playground for deviceDescriptor
Defines the device descriptor used to create a device.
Optional do Not Handle Context LostSearch playground for doNotHandleContextLost
Defines that engine should ignore context lost events If this event happens when this parameter is true, you will have to reload the page to restore rendering
Optional do Not Handle Touch ActionSearch playground for doNotHandleTouchAction
Defines that engine should ignore modifying touch action attribute and style If not handle, you might need to set it up on your side for expected touch devices behavior.
Optional enableGPUDebug MarkersSearch playground for enableGPUDebugMarkers
Defines whether we should generate debug markers in the gpu command lists (can be seen with PIX for eg)
Optional force Fallback AdapterSearch playground for forceFallbackAdapter
Optional glslang OptionsSearch playground for glslangOptions
Options to load the associated Glslang library
Optional limit Device RatioSearch playground for limitDeviceRatio
Defines if the engine should no exceed a specified device ratio
Optional lockstep Max StepsSearch playground for lockstepMaxSteps
Defines the maximum steps to use with deterministic lock step mode
Optional power PreferenceSearch playground for powerPreference
Defines the category of adapter to use. Is it the discrete or integrated device.
Optional premultiplied AlphaSearch playground for premultipliedAlpha
Defines whether the canvas should be created in "premultiplied" mode (if false, the canvas is created in the "opaque" mode) (true by default)
Optional stencilSearch playground for stencil
Defines whether the stencil buffer should be enabled.
Optional swap Chain FormatSearch playground for swapChainFormat
Defines the requested Swap Chain Format.
Optional time StepSearch playground for timeStep
Defines the seconds between each deterministic lock step
Optional twgsl OptionsSearch playground for twgslOptions
Options to load the associated Twgsl library
Optional use Exact Srgb ConversionsSearch playground for useExactSrgbConversions
True if the more expensive but exact conversions should be used for transforming colors to and from linear space within shaders. Otherwise, the default is to use a cheaper approximation.
Optional use High Precision MatrixSearch playground for useHighPrecisionMatrix
Make the matrix computations to be performed in 64 bits instead of 32 bits. False by default
Options to create the WebGPU engine