3

The screen is blank white when my app is started, but will go to normal once the screen is touched.

The error below comes up:

ERROR /BuildRoot/Library/Caches/com.apple.xbs/Sources/VectorKit_Sim/VectorKit-1230.34.9.30.27/GeoGL/GeoGL/GLCoreContext.cpp 1763: InfoLog SolidRibbonShader:

ERROR /BuildRoot/Library/Caches/com.apple.xbs/Sources/VectorKit_Sim/VectorKit-1230.34.9.30.27/GeoGL/GeoGL/GLCoreContext.cpp 1764: WARNING: Output of vertex shader 'v_gradient' not read by fragment shader

How can I fix this?

Community
  • 1
  • 1
Dan.code
  • 431
  • 2
  • 14
  • Could you include some details about your project? What you're trying to do, what you're calling in your viewDidLoad, etc.? Your question is basically "My app doesn't work, why?" – App Dev Guy Jun 19 '17 at 02:31
  • Did you try `Xcode menu > Product > Clean` ? – Vahid Jun 19 '17 at 03:15

1 Answers1

3

Vertex Shaders generally run directly on the GPU for which it's compiled. In this case the iOS simulator doesn't physically have the GPU it needs to work with, hence the white screen.

Usually if you run the code on the physical device it should work, so try running there. Also check out this other question/answer with a similar error that might be of interest.

A vertex shader is simply a tiny program that runs on the GPU, written in a C++ like language called the Metal Shading Language.

Metal Shading Language Specification

l'L'l
  • 44,951
  • 10
  • 95
  • 146