How would I go about making a global texture3d variable which I can modify in the geometry shader (HLSL)?
The size would be 64x64x64.
I would fill it up once in the first renderpass and use it in the second renderpass.
Any help appreciated. Preferably using D10.
EDIT:
I'm making a marching cube terrain shader by following this https://developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch01.html guide (See paragraph 1.4). I got the geometry shader done it's just that I don't have normals and the guide suggests that I can create them by storing data in texture3D but I don't know how I can put data in a texture3D. (The guide is using DX10).