Replies: 4 comments 15 replies
-
|
For the buffer are we thinking of having one shared type that contains it's own struct Buffer {
buffer: ...,
usage: BufferUsage,
}
enum BufferUsage {
...
} |
Beta Was this translation helpful? Give feedback.
-
|
In the end I decided not to rework crates structure and keep renderer inside of the core. If we will ever need to have alternate renderer, we will solve it. |
Beta Was this translation helpful? Give feedback.
-
|
So I am working on voxels and rendering them. The technique involves computing a signed distance field on the gpu when the voxel changes and rendering them. This means two independent pipeline. One for computing the sdf and one for rendering. Our current method involves spawning an entity with components such as Any comments? |
Beta Was this translation helpful? Give feedback.
-
|
As another thing to consider refractoring. Perhaps we should think about the ECS. It would be convenient if we could:
As I understand it we currently do EC like this. Maintain a list of component sets as in One item will contain These lists will have their own list off all components that have that combination. I may be wrong in how I'm reading that code though. If this is the way it is I think we should refractor it into a set of sparse lists indexed by their entity. Not have them grouped by sets of components. This would then make it easier to adjust these lists. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
According to recent updates it appeared that some changes are necessary to be done and some nice-to-haves as well. In this discussion I would like to raise up concrete issues and find the best solutions for them. The top topic will be updated
Blockers
PipelineLayoutandMeshsolution makes impossible to useStorageBufferasVertexBufferVertexBuffer,StorageBufferetc) around the same wgpu buffer makse no sense.Bindingenum on is side will give more sense to choose how would you like to bind a buffer, whatever type it is.Architecture Review
Adddotrix_renderercrate that will contain all traits and backend independent abstractions of renderer partAdddotrix_wgpuas a first implementation of rendering backend, it will use and re-exportdotrix_rendererCratedotrix_corewill decide by the appropriate feature (that will defaults towgpufor now) what crate should be used asrendererfromdotrix_wgpu, just as we have it indotrix_eguiand each exported component can give a possibility of direct affect onwgpu` objects.CC: @Xaniaro
CC: @QuantumEntangledAndy
Beta Was this translation helpful? Give feedback.
All reactions