Bug 1289 - Glsl compiler bug on interpolateAtSample
Summary: Glsl compiler bug on interpolateAtSample
Status: RESOLVED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: opengl (show other bugs)
Version: 2.4.0
Hardware: pc_x86_64 windows
: P4 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2016-02-05 09:51 CET by Giuseppe Barbieri
Modified: 2019-03-27 04:16 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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