* @file ${filename}
*
* @brief Event handler interface. auto-generated file
-*
+*
* DO NOT EDIT
*
* Generation Command Line:
std::stringstream outDir;
outDir << KNOB_DEBUG_OUTPUT_DIR << pBaseName << "_" << pid << std::ends;
CreateDirectory(outDir.str().c_str(), NULL);
-
+
// There could be multiple threads creating thread pools. We
// want to make sure they are uniquly identified by adding in
// the creator's thread id into the filename.
long initial = InterlockedCompareExchange(&mLock, 1, 0);
return (initial == 0);
}
-
+
void unlock()
{
mLock = 0;
__m256 vSrc = _mm256_load_ps(pSrc + i*KNOB_SIMD_WIDTH);
_mm256_stream_ps(pDst + i*KNOB_SIMD_WIDTH, vSrc);
};
-
+
const uint32_t numSimdLines = sizeof(T) / (KNOB_SIMD_WIDTH*4);
static_assert(numSimdLines * KNOB_SIMD_WIDTH * 4 == sizeof(T),
"FIFO element size should be multiple of SIMD width.");
bool isStreaming{ false };
SIMDMASK junkIndices { 0 }; // temporary index store for unused virtual function
-
+
PA_STATE_OPT() {}
PA_STATE_OPT(DRAW_CONTEXT* pDC, uint32_t numPrims, uint8_t* pStream, uint32_t streamSizeInVerts,
uint32_t vertexStride, bool in_isStreaming, PRIMITIVE_TOPOLOGY topo = TOP_UNKNOWN);
uint32_t vertsPerPrim{ 0 };
bool processCutVerts{ false }; // vertex indices with cuts should be processed as normal, otherwise they
// are ignored. Fetch shader sends invalid verts on cuts that should be ignored
- // while the GS sends valid verts for every index
+ // while the GS sends valid verts for every index
simdvector junkVector; // junk simdvector for unimplemented API
#if ENABLE_AVX512_SIMD16
return CheckBit(this->pCutIndices[vertexIndex], vertexOffset);
}
- // iterates across the unprocessed verts until we hit the end or we
+ // iterates across the unprocessed verts until we hit the end or we
// have assembled SIMD prims
void ProcessVerts()
{
this->numRemainingVerts > 0 &&
this->curVertex != this->headVertex)
{
- // if cut index, restart topology
+ // if cut index, restart topology
if (IsCutIndex(this->curVertex))
{
if (this->processCutVerts)
case 6:
SWR_ASSERT(this->adjExtraVert != -1, "Algorith failure!");
AssembleTriStripAdj<gsEnabled>();
-
+
uint32_t nextTri[6];
if (this->reverseWinding)
{
nextTri[1] = this->adjExtraVert;
nextTri[2] = this->vert[3];
nextTri[4] = this->vert[4];
- nextTri[5] = this->vert[0];
+ nextTri[5] = this->vert[0];
}
for (uint32_t i = 0; i < 6; ++i)
{