Open k4G17eYWI opened 6 months ago
UPD: Just discowered that if I put my RW-resources before readable resources it manages to work.
This works:
RWStructuredBuffer<particle> particles;
AppendStructuredBuffer<particle_to_render> render_particles_transparency;
AppendStructuredBuffer<particle_to_render> render_particles_additive;
AppendStructuredBuffer<particle_to_render> render_particles_max;
StructuredBuffer<particle_type> particle_types;
StructuredBuffer<uint> indirect_args;
This rises an Exception:
StructuredBuffer<particle_type> particle_types;
StructuredBuffer<uint> indirect_args;
RWStructuredBuffer<particle> particles;
AppendStructuredBuffer<particle_to_render> render_particles_transparency;
AppendStructuredBuffer<particle_to_render> render_particles_additive;
AppendStructuredBuffer<particle_to_render> render_particles_max;
Seems that there is some issues with addition order
Oops, I didn't realize issues were disabled on the main repository. It should work now. The binding slots are assigned by ShaderConductor, not sure there is much I can do about that. I guess at the least an error should be generated when compiling the shader.
Found a bug (as I think)
Seems that it tries to bind resource on a 9'th slot of 8.
But I have less than 8 writable resources even with append counters. In my shader I have:
And if I look into this._writeableResources I see not all the elements set, some have null values.
Btw: is there a better place to submit issues? Seems that issues are disabled at https://github.com/cpt-max/MonoGame