Quantcast
Channel: DirectXTex texture processing library
Viewing all articles
Browse latest Browse all 1174

Commented Unassigned: BC6H mips 4x4 and below are black [1272]

$
0
0
I tracked this down to the dispatch calls passing in 0 threads:

RunComputeShader( pContext, m_pTryModeG10CS, pSRVs, 2, pCBCS, pErrBestModeUAV[0], uThreadGroupCount / 4, 1, 1 );

should be:

RunComputeShader(pContext, m_pTryModeG10CS, pSRVs, 2, pCBCS, pErrBestModeUAV[0], __max(uThreadGroupCount / 4, 1), 1, 1);

__max() should be added to subsequent calls to RunComputeShader as well. This already exists for BC7, but not BC6H.
Comments: ** Comment from web user: walbourn **

Thanks for the report.

BTW, I would use std::max in <algorithm> rather than the non-portable extension __max.


Viewing all articles
Browse latest Browse all 1174

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>