cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

frayed
Journeyman III

arrays in rendermonkey

Hi

 

I am trying to figure out how you use arrays through rendermonkey.

Say I have the following code:

float4 sampleOffsets [NUM_SAMPLE_POINTS];

How do I declare the "sampleOffsets" variable in the Workspace window, I cannot find where it is possible to declare such arrays?

0 Likes
1 Reply
bpurnomo
Staff

Hi Frayed,

   RenderMonkey does not support variable-sized arrays. You can add fixed-size arrays (upto 4 elements) or matrices (upto 4x4).

 

0 Likes