Comments (4)
resource::Kind
is gfx_hal::image::Kind
reexported.
Shouldn't be that way.
from rendy.
SamplerInfo
and ViewKind
are also part of gfx-hal. Will submit enhancements to them.
Mesh
can't be Clone
because it contains a Buffer
and IndexBuffer
, which need destruction via free_buffers()
or whatever. Might be convenient to add a method that creates a copy of a mesh anyway, even if it has to take a queue and factory to do it. ...that said you can't really modify an existing mesh, so why would you want an exact copy of it instead of just reusing it? Maybe to make resource management easier. Same goes for Image
; it can't be Clone
'cause it contains GPU-managed data, but being able to make a copy or near-copy of an existing image might be handy.
Actually, Mesh
contains Escape<Buffer<B>>
but just IndexBuffer<B>
. Should the index buffer be wrapped in an Escape
too? Looks like it, or its underlying Buffer
, could be.
from rendy.
IndexBuffer
is just Escape<Buffer<B>>
+ IndexType
.
I can't see use case for copying meshes and images, but it can be easy implemented as stand-alone function. Although stand-alone function suffers from bad discoverability.
from rendy.
Derp, I could have sworn that I saw IndexBuffer
containing just a Buffer<B>
with no Escape
.
Okay, I think that's all. Thank you!
from rendy.
Related Issues (20)
- Building issues HOT 1
- Issue with triangle example HOT 1
- [Q] How to enable a rendering backend for project? HOT 10
- Can't run triangle example on MAC with metal backend HOT 6
- Issues with the triangle example and vulkan on windows HOT 8
- shader reflection BindingsMismatch if using a binding in one shader not used by other shaders of the same shader program. HOT 1
- Generate vertex tangents for OBJ files HOT 1
- Using LinearAllocator for non-CPU-visible memory HOT 1
- Using DynamicAllocator for large allocations HOT 2
- Image count not supported HOT 2
- Port to gfx-hal-0.5 HOT 2
- MeshBuilder::with_prim_type does nothing HOT 2
- Render pass with no attachments causes subtraction underflow. HOT 1
- missing depth_stencil on SimpleGraphicsPipelineDesc causes crashes HOT 4
- Is this project abandoned? HOT 5
- Add examples folder HOT 2
- PresentMode isn't configurable (aka Rendy forces vsync)
- [MAINTENANCE] post build timings to PRs
- upgrade gfx to 0.6 to fix MacOS
- Unsound type casting in `cast_slice` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rendy.