Tag Info

Hot answers tagged

1

If your particle count is bigger than the buffer can hold then your best option is to draw in two batches: Draw a first batch of particles that fill the buffer Draw a second batch of anything left over That can extend to any arbitrarily high particle count (just add more batches) and avoids the overhead of runtime resource destruction and creation (which ...


1

If you use same semantic for SemanticName, then you need to increase number for SemanticIndex. I also see that you are increasing InputSlot. This may be correct or not depending on how your data is layed out. If you really have 4 vertex streams (vertex buffers) then it's fine, but I assume that your instance transform is stored in one vertex buffer. Then ...



Only top voted, non community-wiki answers of a minimum length are eligible