Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
691 views

Shared variables in Fragment shaders in Metal or OpenGLES

This might be unlikely, but is there a concept of shared global variables that can be updated in each pass of fragment shaders in either Metal & OpenGLES? I want to update some statistics after ...
Deepak Sharma's user avatar
1 vote
1 answer
824 views

Not able to access a struct object properly inside fragment shader in Metal?

I have two sections in my question: First Section I have a requirement where I have to pass a structure containing 3 values of a color (RGB) varying from 0 - 1 but it turns out whatever values Im ...
Shreesha Kedlaya's user avatar