18 const char *
className()
const override {
return "GR_SpriteVK"; }
38 int &out_connect_start,
39 int &out_connect_num)
override;
42 PrimitiveType prim_type,
45 int &out_connect_start,
46 int &out_connect_num)
override;
49 static void cleanupShaders();
97 signed myTranslucentPassId;
100 bool myHasRotation : 1;
101 bool myHasSpriteScale : 1;
102 bool myIsLitSpheres : 1;
103 bool myCanUseBlending : 1;
bool hasTransparency() const override
returns true if this drawable renders some transparent elements
virtual void draw(RE_RenderContext r, GR_RenderMode mode, GR_RenderFlags flags, GR_DrawParms draw_parms)=0
Normal drawing method. Only issue rendering commands.
virtual void getVkDecorGeometry(GR_DecorationRender::PrimitiveType prim_type, RV_PrimType render_prim, RV_Geometry &geo, int &out_connect_start, int &out_connect_num)
GT_API const UT_StringHolder cache_name
Object that represents drawable geometry. This object holds vertex, instancing and index buffers for ...
Temporary container for either a RV_Render and an RE_Render.
virtual exint getNumGLPrimitives() const =0
bool hasLitSpheres() const
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
set of parameters sent to GR_Primitive::update()
A mesh of unconnected points.
Handle to the main interface of Vulkan.
virtual void getPickConnectGroup(unsigned int pick_mode, GR_PickGeometry pick_geo, int &out_connect_start, int &out_connect_num)
virtual void update(RE_RenderContext r, const GT_PrimitiveHandle &primh, const GR_UpdateParms &p, const char *cache_name)=0
const char * className() const override