Searched refs:floatSize (Results 1 – 3 of 3) sorted by relevance
22 bool ShaderInputBuffer::Alloc(uint32_t floatSize) in Alloc() argument24 if (floatSize > max_) { in Alloc()29 if (IsValid() && (floatSize_ == floatSize)) { in Alloc()35 buffer_ = new float[floatSize]; in Alloc()36 floatSize_ = floatSize; in Alloc()40 const float* ShaderInputBuffer::Map(uint32_t floatSize) const in Map()46 if (floatSize > floatSize_) { in Map()72 void ShaderInputBuffer::Update(float *buffer, uint32_t floatSize) in Update() argument74 if (!Map(floatSize)) { in Update()79 auto ret = memcpy_s(reinterpret_cast<void *>(buffer_), floatSize, in Update()
179 uint32_t floatSize = 2u; in OnSizeChange() local186 const float* buffer = resolutionBuffer_.Map(floatSize); in OnSizeChange()
29 …const float* Map(uint32_t floatSize) const; // floatSize are for sanity check if exceed the intera…30 bool Alloc(uint32_t floatSize); // do alloc if size are different, or do nothing33 void Update(float *buffer, uint32_t floatSize);