X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=builtin_data%2F_builtin.glsl;h=b671f944df83da4960a5809fc4b28ab4f07839ff;hb=215d5bed27ad3de92557ae1b631695a036d29741;hp=1bdfde13306cb347c061dd29d85a7dbb0acb9f77;hpb=f9244b13a4ae30d134dd7410664c045c9f2c1574;p=libs%2Fgl.git diff --git a/builtin_data/_builtin.glsl b/builtin_data/_builtin.glsl index 1bdfde13..b671f944 100644 --- a/builtin_data/_builtin.glsl +++ b/builtin_data/_builtin.glsl @@ -39,6 +39,8 @@ typedef image(dimensions=1[], shadow, sampled) float sampler1DArrayShadow; typedef image(dimensions=2[], shadow, sampled) float sampler2DArrayShadow; typedef image(dimensions=cube, shadow, sampled) float samplerCubeShadow; typedef image(dimensions=cube[], shadow, sampled) float samplerCubeArrayShadow; +typedef image(dimensions=2, sampled, multisample) float sampler2DMS; +typedef image(dimensions=2[], sampled, multisample) float sampler2DMSArray; const float PI = 3.1415926535; @@ -473,6 +475,8 @@ ivec2 textureSize(samplerCubeShadow sampler, int lod); ivec2 textureSize(sampler1DArrayShadow sampler, int lod); ivec3 textureSize(sampler2DArrayShadow sampler, int lod); ivec3 textureSize(samplerCubeArrayShadow sampler, int lod); +ivec2 textureSize(sampler2DMS sampler, int lod); +ivec3 textureSize(sampler2DMSArray sampler, int lod); vec2 textureQueryLod(sampler1D sampler, float P); vec2 textureQueryLod(sampler2D sampler, vec2 P); vec2 textureQueryLod(sampler3D sampler, vec3 P); @@ -499,6 +503,8 @@ int textureQueryLevels(samplerCubeShadow sampler); int textureQueryLevels(sampler1DArrayShadow sampler); int textureQueryLevels(sampler2DArrayShadow sampler); int textureQueryLevels(samplerCubeArrayShadow sampler); +int textureSamples(sampler2DMS sampler); +int textureSamples(sampler2DMSArray sampler); vec4 texture(sampler1D sampler, float P); vec4 texture(sampler2D sampler, vec2 P); vec4 texture(sampler3D sampler, vec3 P); @@ -524,6 +530,8 @@ vec4 texelFetch(sampler2D sampler, ivec2 P, int lod); vec4 texelFetch(sampler3D sampler, ivec3 P, int lod); vec4 texelFetch(sampler1DArray sampler, ivec2 P, int lod); vec4 texelFetch(sampler2DArray sampler, ivec3 P, int lod); +vec4 texelFetch(sampler2DMS sampler, ivec2 P, int sample); +vec4 texelFetch(sampler2DMSArray sampler, ivec3 P, int sample); // END BUILTIN FUNCTIONS #pragma MSP stage(vertex)