Commit Graph

10 Commits (73aed6c6bd542826b5bca15ffbcc153a5f8350b9)

Author SHA1 Message Date
Ben Hansen 73aed6c6bd rustfmt 4 years ago
lberrymage fa418b2c60
Use std::iter::once for encoder queue submission
`std::iter::once` is more idiomatic for passing single-value iterators
than Some(value), and it's even intended for this case according to the
docs.
4 years ago
Ben Hansen f1d43b9829 env_logger::init() 4 years ago
Ben Hansen b3a6d3163d migrated tutorial4 code 4 years ago
Ebrahim Byagowi 3555c713cb Use shaderc instead the deprecated glsl-to-spirv
I was getting lots of these errors,

glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/../Include/Common.h:99:
.../registry/src/github.com-1ecc6299db9ec823/glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/PoolAlloc.h:314:54: error: 'operator=' is a private member of 'glslang::TPoolAllocator'
    void setAllocator(TPoolAllocator* a) { allocator = *a; }
                                           ~~~~~~~~~ ^ ~~
.../registry/src/github.com-1ecc6299db9ec823/glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/PoolAlloc.h:244:21: note: declared private here
    TPoolAllocator& operator=(const TPoolAllocator&);  // don't allow assignment operator
                    ^

And had to replace the apparently now deprecated glsl-to-spirv with shaderc-rs in order to
see the tutorial and thought would be useful for others also.
4 years ago
Ben Hansen 2fb06b49fb finishing up 4 years ago
Ben Hansen 82048bcc31 migrated tutorial4 4 years ago
Adam Nemecek 077f1b740e whitespace 4 years ago
Ben Hansen da4c268fbc updated winit to 0.20 4 years ago
Ben Hansen 4daa013ecf fixing crate structure 4 years ago