mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
Update to the new swapchain model
This commit is contained in:
1 parent
472fa2934a
commit
71b0a7c217
2 files changed
+1
-6
No files matched your search
@@ -431,7 +431,6 @@ pub struct RenderPassColorAttachmentDescriptor<'a> {
|
||||
/// A swap chain image that can be rendered to.
|
||||
#[derive(Debug)]
|
||||
pub struct SwapChainOutput<'a> {
|
||||
pub texture: Texture,
|
||||
pub view: TextureView,
|
||||
swap_chain_id: &'a wgn::SwapChainId,
|
||||
}
|
||||
@@ -1332,10 +1331,6 @@ impl SwapChain {
|
||||
pub fn get_next_texture(&mut self) -> SwapChainOutput {
|
||||
let output = wgn::wgpu_swap_chain_get_next_texture(self.id);
|
||||
SwapChainOutput {
|
||||
texture: Texture {
|
||||
id: output.texture_id,
|
||||
owned: false,
|
||||
},
|
||||
view: TextureView {
|
||||
id: output.view_id,
|
||||
owned: false,
|
||||
|
||||
Reference in new issue
Block a user