class RenderFuncs
Defined at line 19 of file ../../src/ui/lib/escher/renderer/render_funcs.h
Public Methods
RenderFuncs::VertexAttributeBinding * NewVertexAttributeBindings (const MeshAttributeBindingLocations &attribute_binding_locations,BlockAllocator *allocator,const MeshSpec &mesh_spec,uint32_ttotal_attribute_count)
Allocates and initializes a temporary array of VertexAttributeBindings, one for each attribute
defined by |mesh_spec|. This array is valid until the next time that |allocator| is reset.
The caller must ensure that |mesh_spec.total_attribute_count()| == |total_attribute_count|.
This is passed as an arg because:
- it involves non-negligible bit-shifting to compute
- high-frequency callers will already know the count, e.g. |PaperRenderFuncs::MeshData()|.
Defined at line 69 of file ../../src/ui/lib/escher/renderer/render_funcs.cc
void ObtainDepthTexture (Escher *escher,const booluse_protected_memory,const ImageInfo &info,vk::Formatdepth_stencil_format,TexturePtr &depth_texture_in_out)
Updates or replaces the passed in depth texture (depth_texture_in_out) based on the provided
ImageInfo and vk::Format. If the texture pointer is null, a new texture will be allocated.
Defined at line 90 of file ../../src/ui/lib/escher/renderer/render_funcs.cc