ID 511559 - Fetching a sample value using square brackets [#] BlinkScript fails to compile on the GPU

Follow

Problem summary
Fetching a sample value using square brackets [#] BlinkScript fails to compile on the GPU
It compiles correctly on the CPU
 
Customer reported version
nuke.13.2v1
 
Customer reported platform
windows10
 
Steps to reproduce
 
1) Open Nuke and create a BlinkScrip node

2) In the Kernel Source, replace the code with the following BlinkScript script code:
 

kernel exampleKernel : ImageComputationKernel<ePixelWise> {   Image<eRead, eAccessRandom, eEdgeConstant> input; // sorting   Image<eWrite> dst; // the output image   void process(int2 pos) {     float val = 0.f;    val = input(1, 1)[0];          dst() = val;   } };
 
3) Press Recompile, the BlinkScript will fail to compile:

 
Expected behaviour
For the code to compile for the GPU
 
Actual behaviour
When using square brackets [#] to get values compiling fails
 
Workaround
Query the value from inside the sample function, for example:
val = input(1, 1, 0);
Or use the CPU, and not the GPU for your BlinkScript node
 
Reproduced by support
This bug has been reproduced in:
Nuke 13.2v2 - Windows 10, centOS 7, macOS Monterrey
Nuke 13.1v1 - macOS Monterrey - macOS regression
Nuke 12.1v1 - Windows 10, centOS 7 - Windows and Linux regression
 
Unable to reproduce bug in:
Nuke 13.0v8 - macOS Monterrey
Nuke 12.0v8 - Windows 10, centOS 7
 
Earliest version tested
Nuke 12.0v8 - This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why