diff options
Diffstat (limited to 'flowy/src/motion/dec.rs')
-rw-r--r-- | flowy/src/motion/dec.rs | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/flowy/src/motion/dec.rs b/flowy/src/motion/dec.rs index 518fbd2..e62347c 100644 --- a/flowy/src/motion/dec.rs +++ b/flowy/src/motion/dec.rs @@ -66,7 +66,7 @@ impl MotionDecoder { count: None, ty: BindingType::StorageTexture { access: wgpu::StorageTextureAccess::WriteOnly, - format: wgpu::TextureFormat::Bgra8Unorm, + format: wgpu::TextureFormat::Rgba8Unorm, view_dimension: TextureViewDimension::D2, }, visibility: ShaderStages::COMPUTE, @@ -153,35 +153,3 @@ impl MotionDecoder { cpass.dispatch_workgroups(params.blocks_x as u32, params.blocks_y as u32, 1); } } - -/* -BindGroupLayoutEntry { - binding: 0, - count: None, - ty: wgpu::BindingType::StorageTexture { - access: wgpu::StorageTextureAccess::WriteOnly, - format: TextureFormat::Bgra8Unorm, - view_dimension: wgpu::TextureViewDimension::D2, - }, - visibility: ShaderStages::COMPUTE, - }, - BindGroupLayoutEntry { - binding: 1, - count: None, - ty: BindingType::Texture { - sample_type: TextureSampleType::Float { filterable: false }, - view_dimension: TextureViewDimension::D2, - multisampled: false, - }, - visibility: ShaderStages::COMPUTE, - }, - BindGroupLayoutEntry { - binding: 2, - count: None, - ty: BindingType::Texture { - sample_type: TextureSampleType::Float { filterable: false }, - view_dimension: TextureViewDimension::D2, - multisampled: false, - }, - visibility: ShaderStages::COMPUTE, - }, */ |