Unopinionated WebGPU Abstraction Library
MIT License
TEXTURE.USAGE
constant with a RENDER
entry.CreateUniformBuffer
pipeline method which returns a uniform buffer and a uniform buffer layout views.descriptor.module
in CreatePipeline
method is now optional and will be auto generated from and empty shader if omited.CreatePipeline
method can now accept a GPUShaderModule
argument instead of descriptor
.Renderer.CreatePipeline
descriptor
argument is now optional.Texture.CreateTextureFromSource
options
argument is now optional and its format
entry defaults to "rgba8unorm"
white usage
defaults to TEXTURE.USAGE.RENDER
.options
argument is omited in Texture.CopyImageToTexture
, a new texture will be created with its default options from Texture.CreateTextureFromSource
.Full Changelog: https://github.com/UstymUkhman/uwal/compare/v0.0.7...v0.0.8
Published by UstymUkhman about 2 months ago
Color
alpha getters and setters and Premultiply
methodMultisampleTexture
Renderer.CreateBlendComponent
methodRenderer.CreateStencilFaceState
methodRenderer.CreateDepthStencilState
methodRenderer.CreateMultisampleState
methodRenderer.CreateVertexBufferLayout
methodCreateUniformBufferLayout
pipeline methodBlendConstant
in RenderPipeline
Renderer.ConfigureContext
methodBLEND_STATE
optionsTexture.SetRenderer
method to Texture.Renderer
setterRenderer.CreateFragmentColorTarget
to Renderer.CreateTargetState
Renderer.CreateVertexBufferAttribute
CreateShaderModule
method (defaults to an empty shader)mipmaps
option defaults to true
when calling Texture.CreateTextureFromSource
methodtextureName
with optional Renderer
parameter when calling Texture
constructorRenderer.CreateColorAttachment
now accepts Color
instance for the clearValue
parameterRenderer.CreatePipeline
now accepts an optional flag to be set in the current pass (at render time)Full Changelog: https://github.com/UstymUkhman/uwal/compare/v0.0.6...v0.0.7
Published by UstymUkhman 3 months ago
Save
, Reset
and RestorePipelineState
base pipeline methodsCreateDepthAttachment
and CreateStencilAttachment
render pipeline methodsImportExternalTexture
and GenerateCubeMipmaps
texture methodsDegreesToRadians
and RadiansToDegrees
util functionsCube
primitive classShape.Render
methodSubmit
compute pipeline methodPreferredCanvasFormat
static UWAL
getterSetAdapterOptions
into PowerPreference
and ForceFallbackAdapter
static UWAL
settersSetDeviceDescriptor
into DescriptorLabel
, RequiredLimits
static UWAL
setters and SetRequiredFeatures
static UWAL
methodwgpu-matrix
to version ^3.0.1
RenderPipeline
GPUSamplerDescriptor
type with custom address & filter optionsColor
class to accept 4 color channels in the constructor
Shape.Color
setter can now accept Color
class instanceShape
matrix components use Float32Array
s but their setters also accept regular arraysSetAdapterOptions
and SetDeviceDescriptor
UWAL
methodssubmit
paramenter in Compute
method of ComputePipeline
Full Changelog: https://github.com/UstymUkhman/uwal/compare/v0.0.5...v0.0.6
Published by UstymUkhman 4 months ago
Color
util classTexture
class and constantsUseCurrentTextureView
option in Render PipelineRestoreBindGroups
and CopyBindGroups
pipeline methodsactive
state and SetActiveBindGroups
pipeline methoddynamicOffsets
to bind groupsoffset
and size
to vertex buffersShape
shader into vertex and fragment chunksmodule
property to CreatePipeline
parameterloadOp
when creating color attachmentFull Changelog: https://github.com/UstymUkhman/uwal/compare/v0.0.4...v0.0.5
Published by UstymUkhman 5 months ago
Shape
APIsResolution
shaderRenderPipeline
canvas
APIs to RenderPipeline
Full Changelog: https://github.com/UstymUkhman/uwal/compare/v0.0.3...v0.0.4
Published by UstymUkhman 6 months ago
Quad
shaderUWAL.Destroy
methodAddBindGroups
to SetBindGroups
Full Changelog: https://github.com/UstymUkhman/uwal/compare/v0.0.2...v0.0.3