Home
last modified time | relevance | path

Searched refs:floatSize (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/custom/
H A Dshader_input_buffer.cpp22 bool ShaderInputBuffer::Alloc(uint32_t floatSize) in Alloc() argument
24 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() argument
74 if (!Map(floatSize)) { in Update()
79 auto ret = memcpy_s(reinterpret_cast<void *>(buffer_), floatSize, in Update()
H A Dlume_custom_render.cpp179 uint32_t floatSize = 2u; in OnSizeChange() local
186 const float* buffer = resolutionBuffer_.Map(floatSize); in OnSizeChange()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/include/custom/
H A Dshader_input_buffer.h29 …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 nothing
33 void Update(float *buffer, uint32_t floatSize);