We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The follow examples cause a segmentation fault
/* ============ CONSTANTS ============ */ const Chromaticities ACESChromaticities = { { 0.73470, 0.26530}, { 0.00000, 1.00000}, { 0.00010, -0.07700}, { 0.32168, 0.33767} }; // Declare a const - No Seg Fault // const float WHITE[3] = {0.32168, 0.33767, 1.0}; // Declare a const using values from Chromaticities data type and a float - Seg Fault const float WHITE[3] = {ACESChromaticities.white[0], ACESChromaticities.white[1], 1.0}; // Declare a const using values pulled from Chromaticities data type without an additional float - Seg Fault // const float WHITE[2] = {ACESChromaticities.white[0], ACESChromaticities.white[1]}; // Declare a const from floats pulled from Chromaticities placed into a float before the creation of the final array - Seg Fault // const float WHITE_x = ACESChromaticities.white[0]; // const float WHITE_y = ACESChromaticities.white[1]; // const float WHITE[2] = {WHITE_x, WHITE_y}; /* ============ ODT - Main Algorithm ============ */ void main ( input varying float rIn, input varying float gIn, input varying float bIn, input varying float aIn, output varying float rOut, output varying float gOut, output varying float bOut, output varying float aOut) { // Do the same things here and no seg fault // float WHITE[3] = {0.32168, 0.33767, 1.0}; // float WHITE[3] = {ACESChromaticities.white[0], ACESChromaticities.white[1], 1.0}; // float WHITE[2] = {ACESChromaticities.white[0], ACESChromaticities.white[1]}; // float WHITE_x = ACESChromaticities.white[0]; // float WHITE_y = ACESChromaticities.white[1]; // float WHITE[2] = {WHITE_x, WHITE_y}; print(WHITE[0], WHITE[1]); }
The text was updated successfully, but these errors were encountered:
updates CtlSimdSyntaxTree - fixes #6, fixes ampas#23
b81c59c
255907b
No branches or pull requests
The follow examples cause a segmentation fault
The text was updated successfully, but these errors were encountered: