MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / Fill

Method Fill

src/Texture.cpp:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return true;
39 }
40 void Texture::Fill(glm::vec4 val)
41 {
42 // TODO: mipmaps
43 for (int i = 0; i < Width * Height * Depth; i++)
44 memcpy(Data[0] + i * 4, (void*)glm::value_ptr(val), sizeof(float) * 4);
45 }
46 glm::vec4 Texture::Sample(float u, float v, float w, float mip)
47 {
48 // TODO: mipmaps

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected