13VTK_ABI_NAMESPACE_BEGIN
27 return VisRTX::TextureFormat::RGBA8;
30 return VisRTX::TextureFormat::RGB8;
32 return VisRTX::TextureFormat::RGBA32F;
34 return VisRTX::TextureFormat::RGB32F;
36 return VisRTX::TextureFormat::R8;
38 return VisRTX::TextureFormat::R32F;
44 return VisRTX::TextureFormat::RGBA8;
56 this->texture->Release();
61 int type = this->
GetInt({
"format" });
62 int flags = this->
GetInt({
"filter" });
65 Data* data = this->GetObject<Data>({
"data" });
66 VisRTX::Vec2i size = VisRTX::Vec2i(data->GetWidth(), data->GetHeight());
70 VisRTX::Context* rtx = VisRTX_GetContext();
73 this->texture = rtx->CreateTexture(VisRTX::Vec2ui(size.x, size.y), convert((
RTWTextureFormat)type),
source);
78 this->texture->SetFiltering(VisRTX::TextureFiltering::NEAREST, VisRTX::TextureFiltering::NEAREST);
83 VisRTX::Texture* texture =
nullptr;
@ RTW_TEXTURE_FILTER_NEAREST
int32_t GetInt(const std::vector< std::string > &ids, int32_t defaultValue=0, bool *found=nullptr) const
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)