Bug 1289

Summary: Glsl compiler bug on interpolateAtSample
Product: [JogAmp] Jogl Reporter: Giuseppe Barbieri <elect86>
Component: openglAssignee: Sven Gothel <sgothel>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P4    
Version: 2.4.0   
Hardware: pc_x86_64   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

Description Giuseppe Barbieri 2016-02-05 09:51:07 CET
This FS:

#version 400 core

#define FRAG_COLOR		0

precision highp float;
precision highp int;
layout(std140, column_major) uniform;

uniform sampler2D Diffuse;

in vert
{
	vec2 Texcoord;
	//sample vec2 Texcoord;
} Vert;

layout(location = FRAG_COLOR, index = 0) out vec4 Color;

void main()
{
	Color = texture(Diffuse, interpolateAtSample(Vert.Texcoord, gl_SampleID));
	//Color = texture(Diffuse, Vert.Texcoord);
}


fires

Shader status invalid: 0(21) : error C5229: Argument 1 for interpolateAtSample must have no component selection


This does not happen on C#
Commented lines is a temporary trick to get it working in the meanwhile
Comment 1 Giuseppe Barbieri 2017-01-18 19:15:18 CET
It's an Nvidia glsl compiler bug

https://github.com/g-truc/ogl-samples/issues/68