PageRenderTime 11ms queryFilters 0ms Sphinxql 12ms app.CodeModel.GetByIds 359ms findMatchingLines 9ms GetByIds 368ms meta 0ms repositoryFilters 31ms languageFilters 0ms sourceFilters 2ms

827 results for 'glGetFragDataLocation' (11 ms)

Source

Language

Repository

gl_ext_blend_func_extended_unittest.cc git://github.com/chromium/chromium.git | C++ | 696 lines
359
360  EXPECT_EQ(-1, glGetFragDataLocation(program_, "FragData[0]"));
361  EXPECT_EQ(0, glGetFragDataLocation(program_, "FragData"));
361  EXPECT_EQ(0, glGetFragDataLocation(program_, "FragData"));
362  EXPECT_EQ(1, glGetFragDataLocation(program_, "SecondaryFragData"));
363  // Did not bind index.
427  EXPECT_EQ(static_cast<GLenum>(GL_NO_ERROR), glGetError());
428  GLint location = glGetFragDataLocation(program_, "FragColor");
429  EXPECT_EQ(static_cast<GLenum>(GL_INVALID_OPERATION), glGetError());
431  EXPECT_EQ(static_cast<GLenum>(GL_INVALID_OPERATION), glGetError());
432  location = glGetFragDataLocation(program_, "SecondaryFragColor");
433  EXPECT_EQ(static_cast<GLenum>(GL_INVALID_OPERATION), glGetError());
443
444    location = glGetFragDataLocation(program_, "FragColor");
445    EXPECT_EQ(0, location);
BlendFuncExtendedTest.cpp git://github.com/WebKit/webkit.git | C++ | 715 lines
436// Test that tests glBindFragDataLocationEXT, glBindFragDataLocationIndexedEXT,
437// glGetFragDataLocation, glGetFragDataIndexEXT work correctly with
438// GLSL array output variables. The output variable can be bound by
503        LinkProgram();
504        EXPECT_EQ(kFragData0Location, glGetFragDataLocation(mProgram, "FragData"));
505        EXPECT_EQ(0, glGetFragDataIndexEXT(mProgram, "FragData"));
505        EXPECT_EQ(0, glGetFragDataIndexEXT(mProgram, "FragData"));
506        EXPECT_EQ(kFragData0Location, glGetFragDataLocation(mProgram, "FragData[0]"));
507        EXPECT_EQ(0, glGetFragDataIndexEXT(mProgram, "FragData[0]"));
507        EXPECT_EQ(0, glGetFragDataIndexEXT(mProgram, "FragData[0]"));
508        EXPECT_EQ(kFragData1Location, glGetFragDataLocation(mProgram, "FragData[1]"));
509        EXPECT_EQ(0, glGetFragDataIndexEXT(mProgram, "FragData[1]"));
510        // Index bigger than the GLSL variable array length does not find anything.
511        EXPECT_EQ(-1, glGetFragDataLocation(mProgram, "FragData[3]"));
512    }
GL30.java https://bitbucket.org/dagronlund/opengl-game-platform.git | Java | 1,562 lines
944
945	public static int glGetFragDataLocation(int program, ByteBuffer name) {
946		ContextCapabilities caps = GLContext.getCapabilities();
946		ContextCapabilities caps = GLContext.getCapabilities();
947		long function_pointer = caps.glGetFragDataLocation;
948		BufferChecks.checkFunctionAddress(function_pointer);
950		BufferChecks.checkNullTerminated(name);
951		int __result = nglGetFragDataLocation(program, MemoryUtil.getAddress(name), function_pointer);
952		return __result;
953	}
954	static native int nglGetFragDataLocation(int program, long name, long function_pointer);
955
955
956	/** Overloads glGetFragDataLocation. */
957	public static int glGetFragDataLocation(int program, CharSequence name) {
shader_query.cpp git://pkgs.fedoraproject.org/mesa | C++ | 403 lines
327      /* The extra check against FRAG_RESULT_DATA0 is because
328       * glGetFragDataLocation cannot be used on "conventional" attributes.
329       *
352   struct gl_shader_program *const shProg =
353      _mesa_lookup_shader_program_err(ctx, program, "glGetFragDataLocation");
354
360      _mesa_error(ctx, GL_INVALID_OPERATION,
361                  "glGetFragDataLocation(program not linked)");
362      return -1;
369      _mesa_error(ctx, GL_INVALID_OPERATION,
370                  "glGetFragDataLocation(illegal name)");
371      return -1;
383      /* The extra check against FRAG_RESULT_DATA0 is because
384       * glGetFragDataLocation cannot be used on "conventional" attributes.
385       *
shader_query.cpp https://github.com/NSinopoli/mesa.git | C++ | 403 lines
327      /* The extra check against FRAG_RESULT_DATA0 is because
328       * glGetFragDataLocation cannot be used on "conventional" attributes.
329       *
352   struct gl_shader_program *const shProg =
353      _mesa_lookup_shader_program_err(ctx, program, "glGetFragDataLocation");
354
360      _mesa_error(ctx, GL_INVALID_OPERATION,
361                  "glGetFragDataLocation(program not linked)");
362      return -1;
369      _mesa_error(ctx, GL_INVALID_OPERATION,
370                  "glGetFragDataLocation(illegal name)");
371      return -1;
383      /* The extra check against FRAG_RESULT_DATA0 is because
384       * glGetFragDataLocation cannot be used on "conventional" attributes.
385       *
F10.hs git://github.com/haskell-opengl/OpenGLRaw.git | Haskell | 1,576 lines
583
584-- | Manual pages for <https://www.opengl.org/sdk/docs/man3/xhtml/glGetFragDataLocation.xml OpenGL 3.x> or <https://www.opengl.org/sdk/docs/man4/html/glGetFragDataLocation.xhtml OpenGL 4.x>.
585glGetFragDataLocation
589  -> m GLint
590glGetFragDataLocation v1 v2 = liftIO $ dyn324 ptr_glGetFragDataLocation v1 v2
591
593ptr_glGetFragDataLocation :: FunPtr (GLuint -> Ptr GLchar -> IO GLint)
594ptr_glGetFragDataLocation = unsafePerformIO $ getCommand "glGetFragDataLocation"
595
603  -> m GLint
604glGetFragDataLocationEXT v1 v2 = liftIO $ dyn324 ptr_glGetFragDataLocationEXT v1 v2
605
607ptr_glGetFragDataLocationEXT :: FunPtr (GLuint -> Ptr GLchar -> IO GLint)
608ptr_glGetFragDataLocationEXT = unsafePerformIO $ getCommand "glGetFragDataLocationEXT"
609
getfragdatalocation.c https://github.com/blaztinn/piglit.git | C | 182 lines
93	printf("Querying location before linking...\n");
94	loc = glGetFragDataLocation(prog, "v");
95	if (!piglit_check_gl_error(GL_INVALID_OPERATION))
111	printf("Querying location of nonexistent variable...\n");
112	loc = glGetFragDataLocation(prog, "waldo");
113	if (!piglit_check_gl_error(GL_NO_ERROR))
138	printf("Querying locations after binding and linking...\n");
139	loc = glGetFragDataLocation(prog, "v");
140	if (!piglit_check_gl_error(GL_NO_ERROR))
147
148	loc = glGetFragDataLocation(prog, "a");
149	if (!piglit_check_gl_error(GL_NO_ERROR))
162
163	loc = glGetFragDataLocation(prog, "v");
164	if (!piglit_check_gl_error(GL_NO_ERROR))
GL30.java git://github.com/prog694/VIRSYSJ.git | Java | 1,550 lines
950
951	public static int glGetFragDataLocation(int program, ByteBuffer name) {
952		ContextCapabilities caps = GLContext.getCapabilities();
952		ContextCapabilities caps = GLContext.getCapabilities();
953		long function_pointer = caps.glGetFragDataLocation;
954		BufferChecks.checkFunctionAddress(function_pointer);
956		BufferChecks.checkNullTerminated(name);
957		int __result = nglGetFragDataLocation(program, MemoryUtil.getAddress(name), function_pointer);
958		return __result;
959	}
960	static native int nglGetFragDataLocation(int program, long name, long function_pointer);
961
961
962	/** Overloads glGetFragDataLocation. */
963	public static int glGetFragDataLocation(int program, CharSequence name) {
shader_query.cpp https://bitbucket.org/definitelylion/mesa.git | C++ | 330 lines
279   struct gl_shader_program *const shProg =
280      _mesa_lookup_shader_program_err(ctx, program, "glGetFragDataLocation");
281
287      _mesa_error(ctx, GL_INVALID_OPERATION,
288                  "glGetFragDataLocation(program not linked)");
289      return -1;
296      _mesa_error(ctx, GL_INVALID_OPERATION,
297                  "glGetFragDataLocation(illegal name)");
298      return -1;
310      /* The extra check against FRAG_RESULT_DATA0 is because
311       * glGetFragDataLocation cannot be used on "conventional" attributes.
312       *
shader_query.cpp https://github.com/chromylei/third_party.git | C++ | 402 lines
327      /* The extra check against FRAG_RESULT_DATA0 is because
328       * glGetFragDataLocation cannot be used on "conventional" attributes.
329       *
352   struct gl_shader_program *const shProg =
353      _mesa_lookup_shader_program_err(ctx, program, "glGetFragDataLocation");
354
360      _mesa_error(ctx, GL_INVALID_OPERATION,
361                  "glGetFragDataLocation(program not linked)");
362      return -1;
369      _mesa_error(ctx, GL_INVALID_OPERATION,
370                  "glGetFragDataLocation(illegal name)");
371      return -1;
383      /* The extra check against FRAG_RESULT_DATA0 is because
384       * glGetFragDataLocation cannot be used on "conventional" attributes.
385       *
GL30.java https://github.com/Jademalo/DorfElf.git | Java | 1,548 lines
950
951	public static int glGetFragDataLocation(int program, ByteBuffer name) {
952		ContextCapabilities caps = GLContext.getCapabilities();
952		ContextCapabilities caps = GLContext.getCapabilities();
953		long function_pointer = caps.glGetFragDataLocation;
954		BufferChecks.checkFunctionAddress(function_pointer);
956		BufferChecks.checkNullTerminated(name);
957		int __result = nglGetFragDataLocation(program, name, name.position(), function_pointer);
958		return __result;
959	}
960	static native int nglGetFragDataLocation(int program, ByteBuffer name, int name_position, long function_pointer);
961
961
962	/** Overloads glGetFragDataLocation. */
963	public static int glGetFragDataLocation(int program, CharSequence name) {
glreference.tsv https://github.com/putsman/apitrace.git | Robot Framework | 2,002 lines
565glGetFragDataIndex	http://www.opengl.org/sdk/docs/man4/xhtml/glGetFragDataIndex.xml
566glGetFragDataLocation	http://www.opengl.org/sdk/docs/man3/xhtml/glGetFragDataLocation.xml
567glGetFragDataLocation	http://www.opengl.org/sdk/docs/man4/xhtml/glGetFragDataLocation.xml
GL30.java https://bitbucket.org/Prodes/smallgames | Java | 1,551 lines
950
951	public static int glGetFragDataLocation(int program, ByteBuffer name) {
952		ContextCapabilities caps = GLContext.getCapabilities();
952		ContextCapabilities caps = GLContext.getCapabilities();
953		long function_pointer = caps.glGetFragDataLocation;
954		BufferChecks.checkFunctionAddress(function_pointer);
956		BufferChecks.checkNullTerminated(name);
957		int __result = nglGetFragDataLocation(program, MemoryUtil.getAddress(name), function_pointer);
958		return __result;
959	}
960	static native int nglGetFragDataLocation(int program, long name, long function_pointer);
961
961
962	/** Overloads glGetFragDataLocation. */
963	public static int glGetFragDataLocation(int program, CharSequence name) {
getfragdatalocation.c https://gitlab.com/mcepl/piglit.git | C | 186 lines
97	printf("Querying location before linking...\n");
98	loc = glGetFragDataLocation(prog, "v");
99	if (!piglit_check_gl_error(GL_INVALID_OPERATION))
115	printf("Querying location of nonexistent variable...\n");
116	loc = glGetFragDataLocation(prog, "waldo");
117	if (!piglit_check_gl_error(GL_NO_ERROR))
142	printf("Querying locations after binding and linking...\n");
143	loc = glGetFragDataLocation(prog, "v");
144	if (!piglit_check_gl_error(GL_NO_ERROR))
151
152	loc = glGetFragDataLocation(prog, "a");
153	if (!piglit_check_gl_error(GL_NO_ERROR))
166
167	loc = glGetFragDataLocation(prog, "v");
168	if (!piglit_check_gl_error(GL_NO_ERROR))
GLES30.java https://bitbucket.org/dagronlund/opengl-game-platform.git | Java | 856 lines
607
608	int glGetFragDataLocation(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
609
609
610	@Alternate("glGetFragDataLocation")
611	int glGetFragDataLocation(@GLuint int program, @NullTerminated CharSequence name);
GL30.java https://bitbucket.org/dagronlund/opengl-game-platform.git | Java | 1,059 lines
251
252	int glGetFragDataLocation(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
253
253
254	@Alternate("glGetFragDataLocation")
255	int glGetFragDataLocation(@GLuint int program, @NullTerminated CharSequence name);
GLES30.java https://bitbucket.org/dagronlund/opengl-game-platform.git | Java | 1,261 lines
794
795	public static int glGetFragDataLocation(int program, ByteBuffer name) {
796		BufferChecks.checkDirect(name);
797		BufferChecks.checkNullTerminated(name);
798		int __result = nglGetFragDataLocation(program, MemoryUtil.getAddress(name));
799		return __result;
800	}
801	static native int nglGetFragDataLocation(int program, long name);
802
802
803	/** Overloads glGetFragDataLocation. */
804	public static int glGetFragDataLocation(int program, CharSequence name) {
804	public static int glGetFragDataLocation(int program, CharSequence name) {
805		int __result = nglGetFragDataLocation(program, APIUtil.getBufferNT(name));
806		return __result;
shader_query.cpp https://gitlab.com/MJDSys/mesa.git | C++ | 500 lines
423      /* The extra check against FRAG_RESULT_DATA0 is because
424       * glGetFragDataLocation cannot be used on "conventional" attributes.
425       *
448   struct gl_shader_program *const shProg =
449      _mesa_lookup_shader_program_err(ctx, program, "glGetFragDataLocation");
450
456      _mesa_error(ctx, GL_INVALID_OPERATION,
457                  "glGetFragDataLocation(program not linked)");
458      return -1;
465      _mesa_error(ctx, GL_INVALID_OPERATION,
466                  "glGetFragDataLocation(illegal name)");
467      return -1;
479      /* The extra check against FRAG_RESULT_DATA0 is because
480       * glGetFragDataLocation cannot be used on "conventional" attributes.
481       *
shader.d https://github.com/burner/glamour.git | D | 470 lines
13                        glUseProgram, glAttachShader, glGetAttribLocation,
14                        glDeleteProgram, glDeleteShader, glGetFragDataLocation,
15                        glGetUniformLocation, glUniform1i, glUniform1f,
258        debug {
259            auto loc = checkgl!glGetFragDataLocation(program, toStringz(name));
260            if(loc < 0) {
260            if(loc < 0) {
261                stderr.writefln(`glGetFragDataLocation returned a value < 0 for location: "%s"`, name);
262            }
265        } else {
266            return frag_locations[name] = checkgl!glGetFragDataLocation(program, toStringz(name));
267        }
GL30.java git://github.com/prog694/VIRSYSJ.git | Java | 1,049 lines
251
252	int glGetFragDataLocation(@GLuint int program, @NullTerminated @Const @GLchar ByteBuffer name);
253
253
254	@Alternate("glGetFragDataLocation")
255	int glGetFragDataLocation(@GLuint int program, @NullTerminated CharSequence name);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21