mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 09:34:09 +01:00
[glsl-out] Use fmt::Writer instead of io::Writer
This commit is contained in:
1 parent
446f5dad6f
commit
c37ae5e2a0
4 files changed
+12
-25
No files matched your search
@@ -3,7 +3,7 @@ use crate::{
|
||||
Binding, Bytes, Handle, ImageClass, ImageDimension, Interpolation, Sampling, ScalarKind,
|
||||
ShaderStage, StorageClass, StorageFormat, Type, TypeInner,
|
||||
};
|
||||
use std::io::Write;
|
||||
use std::fmt::Write;
|
||||
|
||||
bitflags::bitflags! {
|
||||
/// Structure used to encode a set of additions to glsl that aren't supported by all versions
|
||||
|
||||
@@ -57,7 +57,7 @@ use features::FeaturesManager;
|
||||
use std::{
|
||||
cmp::Ordering,
|
||||
fmt,
|
||||
io::{Error as IoError, Write},
|
||||
fmt::{Error as FmtError, Write},
|
||||
};
|
||||
use thiserror::Error;
|
||||
|
||||
@@ -271,8 +271,8 @@ type BackendResult = Result<(), Error>;
|
||||
#[derive(Debug, Error)]
|
||||
pub enum Error {
|
||||
/// A error occurred while writing to the output
|
||||
#[error("I/O error")]
|
||||
IoError(#[from] IoError),
|
||||
#[error("Format error")]
|
||||
FmtError(#[from] FmtError),
|
||||
/// The specified [`Version`](Version) doesn't have all required [`Features`](super)
|
||||
///
|
||||
/// Contains the missing [`Features`](Features)
|
||||
|
||||
Reference in new issue
Block a user