Lines Matching refs:positions
38 positions = nullptr; in GradientCacheEntry()
41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry()
42 copy(colors, positions, count); in GradientCacheEntry()
46 copy(entry.colors.get(), entry.positions.get(), entry.count); in GradientCacheEntry()
51 copy(entry.colors.get(), entry.positions.get(), entry.count);
70 std::unique_ptr<float[]> positions; member
74 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy()
77 this->positions.reset(new float[count]); in copy()
80 memcpy(this->positions.get(), positions, count * sizeof(float)); in copy()
118 Texture* get(uint32_t* colors, float* positions, int count);
140 uint32_t* colors, float* positions, int count);
142 void generateTexture(uint32_t* colors, float* positions,