bubu

vector subscript

Discussion created by bubu on Jun 4, 2010
Latest reply on Jun 8, 2010 by bubu

Is there any way to do this, pls?

 

float4 v = float4(0.0f,1.0f,2.0f,3.0f);

const int idx = 2;

v[idx] += 1.0f;

 

???

Outcomes