rick.weber

Using global buffer return CAL_RESULT_WARNING in calResAllocLocal2D() if dim1 is not multiple of 64

Discussion created by rick.weber on Jan 12, 2009
Latest reply on Jan 12, 2009 by MicahVillmow

When I call calResAlloc2D(), if the x dimension is not a multiple of 64, the result returned is CAL_RESULT_WARNING. I think this is because x is not a multiple of the pitch alignment (indeed, if x is 65, the pitch returned by calResMap() is 128). However, since I am passing CAL_RESALLOC_GLOBAL_BUFFER and will be doing my own indexing into the global buffer in the shader, can I safely ignore this warning?

Outcomes