class PaperRenderFuncs
Defined at line 22 of file ../../src/ui/lib/escher/paper/paper_render_funcs.h
Helper functions and structs used by e.g. PaperRenderQueue to produce
RenderQueueItems for the RenderQueues that it encapsulates.
Public Members
static MeshAttributeBindingLocations kMeshAttributeBindingLocations
Public Methods
void RenderMesh (CommandBuffer * cb, const RenderQueueContext * context, const RenderQueueItem * items, uint32_t instance_count)
Matches signature of |RenderQueueItem::RenderFunc|. Expects the items'
|object_data| and |instance_data| to be of type |MeshData| and
|MeshDrawData|, respectively; these types are defined below.
Defined at line 34 of file ../../src/ui/lib/escher/paper/paper_render_funcs.cc
PaperRenderFuncs::MeshData * NewMeshData (const FramePtr & frame, Mesh * mesh, const TexturePtr & texture)
Helper function for allocating/populating a |MeshData|. Both CPU and
uniform GPU memory is allocated using per-Frame allocators.
Defined at line 65 of file ../../src/ui/lib/escher/paper/paper_render_funcs.cc
PaperRenderFuncs::MeshDrawData * NewMeshDrawData (const FramePtr & frame, const mat4 & transform, const vec4 & color, float gamma_power, const PaperShaderList & shader_list, uint32_t num_indices)
Helper function for allocating/populating a |MeshDrawData|. Both CPU and
uniform GPU memory is allocated using per-Frame allocators.
Defined at line 115 of file ../../src/ui/lib/escher/paper/paper_render_funcs.cc