Skip to content

Undefined variable vertexData on Page 65 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jackxujh opened this issue Oct 26, 2018 · 1 comment
Open

Undefined variable vertexData on Page 65 #1

jackxujh opened this issue Oct 26, 2018 · 1 comment

Comments

@jackxujh
Copy link

On page 65 in the printed version, which is the Your First Shader: Pass Through section in Chapter 5, there is a reference to an undefined variable called vertexData:

let vertexColorSize = vertexData.count * MemoryLayout<Float>.size

This variable is not defined elsewhere in the code either. Is there something missing?

@jackxujh jackxujh changed the title Undefined variable on Page 65 Undefined variable vertexData on Page 65 Oct 26, 2018
@thesammiller
Copy link

vertexData gets defined on p. 31 as the array of Floats for the 2D triangle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants