Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Typed Buffer access range

$
0
0

Hey Guys,

 

I encountered a problem where I can't access all the data in my TypedBuffer, it behaved like my BufIdx is cut off at certain number:

 

float readVolume(uint3 u3Idx) {

     uint uBufIdx = u3Idx.x + u3Idx.y*reso.x + u3Idx.z*reso.x*reso.y;

     return tex_srvTSDFVol[uBufIdx];

}

 

it ok if tex_srvTSDFVol reso is 320x640x640 and the problem happens when the reso is 384x768x768 and higher. What's interested is that the cutoff happened in the same place no matter the volume format is R8 or R16 or R32. So I guess the problem is related to uBufIdx range, but uint is 32bit unsign integer so should be ok even for 1024x2048x2048.

 

Are there any other limitations about the size of typed buffer? or are there other silly bug in my code?

 

Thanks


Viewing all articles
Browse latest Browse all 17560

Trending Articles



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