SWR_RENDERTARGET_ATTACHMENT rt,
uint32_t,
uint32_t,
- DWORD[4],
+ uint32_t[4],
const SWR_RECT& rect);
extern PFN_CLEAR_TILES gClearTilesTable[NUM_SWR_FORMATS];
SWR_RENDERTARGET_ATTACHMENT rt,
uint32_t macroTile,
uint32_t renderTargetArrayIndex,
- DWORD clear[4],
+ uint32_t clear[4],
const SWR_RECT& rect)
{
// convert clear color to hottile format
pClear->renderTargetArrayIndex);
// All we want to do here is to mark the hot tile as being in a "needs clear" state.
- pHotTile->clearData[0] = *(DWORD*)&(pClear->clearRTColor[0]);
- pHotTile->clearData[1] = *(DWORD*)&(pClear->clearRTColor[1]);
- pHotTile->clearData[2] = *(DWORD*)&(pClear->clearRTColor[2]);
- pHotTile->clearData[3] = *(DWORD*)&(pClear->clearRTColor[3]);
+ pHotTile->clearData[0] = *(uint32_t*)&(pClear->clearRTColor[0]);
+ pHotTile->clearData[1] = *(uint32_t*)&(pClear->clearRTColor[1]);
+ pHotTile->clearData[2] = *(uint32_t*)&(pClear->clearRTColor[2]);
+ pHotTile->clearData[3] = *(uint32_t*)&(pClear->clearRTColor[3]);
pHotTile->state = HOTTILE_CLEAR;
}
}
true,
numSamples,
pClear->renderTargetArrayIndex);
- pHotTile->clearData[0] = *(DWORD*)&pClear->clearDepth;
+ pHotTile->clearData[0] = *(uint32_t*)&pClear->clearDepth;
pHotTile->state = HOTTILE_CLEAR;
}
if (pClear->attachmentMask & SWR_ATTACHMENT_MASK_COLOR)
{
- DWORD clearData[4];
- clearData[0] = *(DWORD*)&(pClear->clearRTColor[0]);
- clearData[1] = *(DWORD*)&(pClear->clearRTColor[1]);
- clearData[2] = *(DWORD*)&(pClear->clearRTColor[2]);
- clearData[3] = *(DWORD*)&(pClear->clearRTColor[3]);
+ uint32_t clearData[4];
+ clearData[0] = *(uint32_t*)&(pClear->clearRTColor[0]);
+ clearData[1] = *(uint32_t*)&(pClear->clearRTColor[1]);
+ clearData[2] = *(uint32_t*)&(pClear->clearRTColor[2]);
+ clearData[3] = *(uint32_t*)&(pClear->clearRTColor[3]);
PFN_CLEAR_TILES pfnClearTiles = gClearTilesTable[KNOB_COLOR_HOT_TILE_FORMAT];
SWR_ASSERT(pfnClearTiles != nullptr);
if (pClear->attachmentMask & SWR_ATTACHMENT_DEPTH_BIT)
{
- DWORD clearData[4];
- clearData[0] = *(DWORD*)&pClear->clearDepth;
+ uint32_t clearData[4];
+ clearData[0] = *(uint32_t*)&pClear->clearDepth;
PFN_CLEAR_TILES pfnClearTiles = gClearTilesTable[KNOB_DEPTH_HOT_TILE_FORMAT];
SWR_ASSERT(pfnClearTiles != nullptr);
if (pClear->attachmentMask & SWR_ATTACHMENT_STENCIL_BIT)
{
- DWORD clearData[4];
+ uint32_t clearData[4];
clearData[0] = pClear->clearStencil;
PFN_CLEAR_TILES pfnClearTiles = gClearTilesTable[KNOB_STENCIL_HOT_TILE_FORMAT];
uint32_t frontFaceMask = frontWindingTris;
uint32_t* pPrimID = (uint32_t*)&primID;
const uint32_t* pViewportIndex = (uint32_t*)&viewportIdx;
- DWORD triIndex = 0;
+ uint32_t triIndex = 0;
uint32_t edgeEnable;
PFN_WORK_FUNC pfnWork;
TransposeVertices(vHorizW, vRecipW0, vRecipW1, vRecipW2);
// scan remaining valid triangles and bin each separately
- while (_BitScanForward(&triIndex, triMask))
+ while (_BitScanForward((DWORD*)&triIndex, triMask))
{
uint32_t linkageCount = state.backendState.numAttributes;
uint32_t numScalarAttribs = linkageCount * 4;
const uint32_t* aRTAI = reinterpret_cast<const uint32_t*>(&rtIdx);
uint32_t* pPrimID = (uint32_t*)&primID;
- DWORD primIndex = 0;
+ uint32_t primIndex = 0;
const SWR_BACKEND_STATE& backendState = pDC->pState->state.backendState;
// scan remaining valid triangles and bin each separately
- while (_BitScanForward(&primIndex, primMask))
+ while (_BitScanForward((DWORD*)&primIndex, primMask))
{
uint32_t linkageCount = backendState.numAttributes;
uint32_t numScalarAttribs = linkageCount * 4;
// scan remaining valid prims and bin each separately
const SWR_BACKEND_STATE& backendState = state.backendState;
- DWORD primIndex;
- while (_BitScanForward(&primIndex, primMask))
+ uint32_t primIndex;
+ while (_BitScanForward((DWORD*)&primIndex, primMask))
{
uint32_t linkageCount = backendState.numAttributes;
uint32_t numScalarAttribs = linkageCount * 4;
TransposeVertices(vHorizW, vRecipW0, vRecipW1, SIMD_T::setzero_ps());
// scan remaining valid prims and bin each separately
- DWORD primIndex;
- while (_BitScanForward(&primIndex, primMask))
+ uint32_t primIndex;
+ while (_BitScanForward((DWORD*)&primIndex, primMask))
{
uint32_t linkageCount = state.backendState.numAttributes;
uint32_t numScalarAttribs = linkageCount * 4;
{
uint8_t* pBuffer;
HOTTILE_STATE state;
- DWORD clearData[4]; // May need to change based on pfnClearTile implementation. Reorder for
+ uint32_t clearData[4]; // May need to change based on pfnClearTile implementation. Reorder for
// alignment?
uint32_t numSamples;
uint32_t renderTargetArrayIndex; // current render target array index loaded
{
std::string output;
#if defined(_WIN32)
- DWORD valueSize = GetEnvironmentVariableA(variableName.c_str(), nullptr, 0);
+ uint32_t valueSize = GetEnvironmentVariableA(variableName.c_str(), nullptr, 0);
if (!valueSize)
return output;
output.resize(valueSize - 1); // valueSize includes null, output.resize() does not