MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / GetTestVector

Function GetTestVector

deps/LLGL/tests/Test_Compute.cpp:13–24  ·  view source on GitHub ↗

Fill an array list of 4D-vectors for testing purposes

Source from the content-addressed store, hash-verified

11
12// Fill an array list of 4D-vectors for testing purposes
13static std::vector<Gs::Vector4f> GetTestVector(std::size_t size)
14{
15 std::vector<Gs::Vector4f> vec(size);
16
17 for (unsigned int i = 0; i < size; ++i)
18 {
19 auto x = static_cast<float>(i + 1);
20 vec[i] = Gs::Vector4f(1, x, 1.0f / x, 0.1f * x);
21 }
22
23 return vec;
24}
25
26int main()
27{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected