|
Blender V4.3
|
Public Member Functions | |
| ThumbsDrawBatch (ed::seq::StripsDrawBatch &strips_batch, GPUTexture *atlas) | |
| ~ThumbsDrawBatch () | |
| void | add_thumb (const SeqThumbInfo &info, float width, const rcti &rect, int tex_width, int tex_height) |
| void | flush_batch () |
Public Attributes | |
| ed::seq::StripsDrawBatch & | strips_batch_ |
| Array< SeqStripThumbData > | thumbs_ |
| GPUUniformBuf * | ubo_thumbs_ = nullptr |
| GPUShader * | shader_ = nullptr |
| gpu::Batch * | batch_ = nullptr |
| GPUTexture * | atlas_ = nullptr |
| int | binding_context_ = 0 |
| int | binding_thumbs_ = 0 |
| int | binding_image_ = 0 |
| int | thumbs_count_ = 0 |
Definition at line 205 of file sequencer_thumbnails.cc.
|
inline |
Definition at line 217 of file sequencer_thumbnails.cc.
References batch_, binding_context_, binding_image_, binding_thumbs_, GPU_batch_preset_quad(), GPU_SEQ_STRIP_DRAW_DATA_LEN, GPU_shader_get_builtin_shader(), GPU_shader_get_sampler_binding(), GPU_shader_get_ubo_binding(), GPU_SHADER_SEQUENCER_THUMBS, GPU_uniformbuf_create, SeqStripThumbData, shader_, and ubo_thumbs_.
|
inline |
Definition at line 230 of file sequencer_thumbnails.cc.
References flush_batch(), GPU_uniformbuf_free(), GPU_uniformbuf_unbind(), and ubo_thumbs_.
|
inline |
Definition at line 237 of file sequencer_thumbnails.cc.
References SeqThumbInfo::bottom, float, flush_batch(), GPU_SEQ_STRIP_DRAW_DATA_LEN, SeqThumbInfo::is_muted, SeqThumbInfo::left_handle, blender::ed::seq::StripsDrawBatch::pos_to_pixel_space_x(), blender::ed::seq::StripsDrawBatch::pos_to_pixel_space_y(), SeqThumbInfo::right_handle, SeqStripThumbData, strips_batch_, thumbs_, thumbs_count_, SeqThumbInfo::top, SeqThumbInfo::x1, SeqThumbInfo::x2, rcti::xmin, SeqThumbInfo::y1, SeqThumbInfo::y2, rcti::ymax, and rcti::ymin.
|
inline |
Definition at line 262 of file sequencer_thumbnails.cc.
References atlas_, batch_, binding_context_, binding_image_, binding_thumbs_, blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::ed::seq::StripsDrawBatch::get_ubo_context(), GPU_batch_draw_instance_range(), GPU_batch_set_shader(), GPU_shader_bind(), GPU_texture_bind(), GPU_uniformbuf_bind(), GPU_uniformbuf_update(), shader_, strips_batch_, thumbs_, thumbs_count_, and ubo_thumbs_.
Referenced by add_thumb(), and ~ThumbsDrawBatch().
| GPUTexture* ThumbsDrawBatch::atlas_ = nullptr |
Definition at line 211 of file sequencer_thumbnails.cc.
Referenced by flush_batch().
| gpu::Batch* ThumbsDrawBatch::batch_ = nullptr |
Definition at line 210 of file sequencer_thumbnails.cc.
Referenced by flush_batch(), and ThumbsDrawBatch().
| int ThumbsDrawBatch::binding_context_ = 0 |
Definition at line 212 of file sequencer_thumbnails.cc.
Referenced by flush_batch(), and ThumbsDrawBatch().
| int ThumbsDrawBatch::binding_image_ = 0 |
Definition at line 214 of file sequencer_thumbnails.cc.
Referenced by flush_batch(), and ThumbsDrawBatch().
| int ThumbsDrawBatch::binding_thumbs_ = 0 |
Definition at line 213 of file sequencer_thumbnails.cc.
Referenced by flush_batch(), and ThumbsDrawBatch().
| GPUShader* ThumbsDrawBatch::shader_ = nullptr |
Definition at line 209 of file sequencer_thumbnails.cc.
Referenced by flush_batch(), and ThumbsDrawBatch().
| ed::seq::StripsDrawBatch& ThumbsDrawBatch::strips_batch_ |
Definition at line 206 of file sequencer_thumbnails.cc.
Referenced by add_thumb(), and flush_batch().
| Array<SeqStripThumbData> ThumbsDrawBatch::thumbs_ |
Definition at line 207 of file sequencer_thumbnails.cc.
Referenced by add_thumb(), and flush_batch().
| int ThumbsDrawBatch::thumbs_count_ = 0 |
Definition at line 215 of file sequencer_thumbnails.cc.
Referenced by add_thumb(), and flush_batch().
| GPUUniformBuf* ThumbsDrawBatch::ubo_thumbs_ = nullptr |
Definition at line 208 of file sequencer_thumbnails.cc.
Referenced by flush_batch(), ThumbsDrawBatch(), and ~ThumbsDrawBatch().