All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
wgpu
has been updated to 0.16.0.
wgpu
has been updated to 0.15.0.
wgpu
has been updated to 0.14.0.winit
has been updated to 0.27.4.
wgpu
has been updated to 0.13.1.lyon_tesselation
has been updated to 1.0.1Renderer::read
is no longer async and blocks the current thread when called. This is due to underlying changes with how wgpu'sBufferSlice::map_async
is no longer future-based. There was no way to keep this API async while still remaining runtime independence within easygpu, so the decision was made to make this a blocking call.
wgpu
has been updated to 0.12.
BindingType::SampledTexture
now specifies filterable astrue
. This caused issues when upgrading to wgpu 0.11.1.
wgpu
has been updated to 0.11. There are no public API changes for this update.
-
wgpu
has been updated to 0.10. With it come these breaking API changes:SwapChain
has been removed. Change existing calls fromcreate_swap_chain
toconfigure
.Renderer
has a new method,current_frame
which returns aRenderFrame
. This can be used in place of the formerSwapChainTexture
type.
-
easygpu
now usesfigures
for its math types, andScreenScale
andWorldScale
now are type aliases for the unit types provided by that crate. If you're using functionality that was ineuclid
but is no longer available infigures
, please submit an issue. We may not add all requested functionality, but as long as it extends one of the typesfigures
already has, it likely will be added upon request.One of the truly breaking changes is
ScreenTransformation::ortho()
. The parameter order is nowleft
,top
,right
,bottom
,near
,far
. This order matches my personal preference of the order in which sides of a rectangle should be specified. Personal preference, but since it was getting reimplemented, I made this change. -
Basic MSAA support has been added. Multisampling textures seems like its own ball of wax. This is aimed at allowing rendering to use multisampling to produce antialiasing around geometry borders. The lyon examples have been updated to use 4 samples.
Renderer::for_surface
,Renderer::offscreen
,Device::create_texture
,Device::create_framebuffer
,Device::create_zbuffer
now takesample_count
as a parameter. Pass in 1 to disable MSAA rendering. Any higher number controls the number of samples taken.Device::create_pipeline
now accepts aMultisampleState
parameter to control multisampling.Renderer::texture
now takes an additional argument to specify if the texture should be multisampled. If true, the texture will be created using the sample count the renderer was initialized with.Frame::pass
now accepts a multisample_buffer parameter. This is a texture view for a multisampled texture that will be used to enable MSAA rendering. If None is passed, MSAA will not take place.
-
easygpu-lyon
has now updated to lyon 0.17.
easygpu-lyon
is now maintained as part of this repository. The version numbers were already tightly linked. This changelog will now contain information relating to both.
- Updated to
wgpu
0.9. No API changes were necessary.
Device::new()
andRenderer::new()
have been renamed tofor_surface()
.Renderer::create_texture()
andDevice::create_texture()
now require you to specify theTextureUsage
. Previously,wgpu::TextureUsage::SAMPLED | wgpu::TextureUsage::COPY_DST
was hard-coded.
Device::offscreen()
andRenderer::offscreen()
have been added to enable offscren rendering. Offscreen types will panic if used with any APIs that require an active wgpu surface, such ascreate_swap_chain()
.