I am working on a spectral ray tracing program as a part of my diploma thesis. Implementation is made (obvoiusly) using OptiX. However, I have encountered an error I just cannot resolve. It is element size mismatch in buffer vs ptx file, exactly: “Buffer ‘material_buffer’ element size(1008) does not match ptx(1004).”. I have no idea where those 4 bytes can vanish and even after few weeks I found no cause nor solution. Does anybody have an idea why it might happen?
Thanks for any tips.
EDIT: I forgot to mention I am using VS2010 and OptiX 3.0.1