RMI
02-12-2014 10:10:25
Hi,
I try to pass a big array of float to a pixel shader.
But When i want to affect its value by coding i've an error (System.Runtime.InteropServices.SEHException)
Is there somebody who know how i can do that ?
Thanks
I try to pass a big array of float to a pixel shader.
fragment_program CoordinateMapping_ps hlsl
{
source CoordinateMapping_ps.hlsl
target ps_2_0
entry_point main
default_params
{
param_named depthSpacePoints float4147200
}
}
But When i want to affect its value by coding i've an error (System.Runtime.InteropServices.SEHException)
fixed (float* depthSpacePointsDataTempPtr = depthSpacePointsDataTemp)
{
pass.GetFragmentProgramParameters().SetNamedConstant("depthSpacePoints", depthSpacePointsDataTempPtr, 4147200);
}
Is there somebody who know how i can do that ?
Thanks