particle system sorting fix

This commit is contained in:
turanszkij
2018-05-08 17:23:48 +01:00
parent 25fa7e23f0
commit ff6bcee3a3
3 changed files with 4 additions and 1 deletions
@@ -62,7 +62,6 @@ CBUFFER(SortConstants, 0)
{
int4 job_params;
};
#define SORT_SIZE 512
#define THREADCOUNT_EMIT 256
#define THREADCOUNT_SIMULATION 256
+2
View File
@@ -22,6 +22,8 @@
#include "ShaderInterop_EmittedParticle.h"
#define SORT_SIZE 4096
#if( SORT_SIZE>4096 )
// won't work for arrays>4096
#error due to LDS size SORT_SIZE must be 4096 or smaller
@@ -22,6 +22,8 @@
#include "ShaderInterop_EmittedParticle.h"
#define SORT_SIZE 2048
#if( SORT_SIZE>2048 )
#error
#endif