24 return VisRTX::TextureFormat::RGBA8;
27 return VisRTX::TextureFormat::RGB8;
29 return VisRTX::TextureFormat::RGBA32F;
31 return VisRTX::TextureFormat::RGB32F;
33 return VisRTX::TextureFormat::R8;
35 return VisRTX::TextureFormat::R32F;
41 return VisRTX::TextureFormat::RGBA8;
53 this->texture->Release();
58 int type = this->
GetInt({
"format" });
59 int flags = this->
GetInt({
"filter" });
62 Data* data = this->GetObject<Data>({
"data" });
63 VisRTX::Vec2i size = VisRTX::Vec2i(data->GetWidth(), data->GetHeight());
67 VisRTX::Context* rtx = VisRTX_GetContext();
70 this->texture = rtx->CreateTexture(VisRTX::Vec2ui(size.x, size.y), convert((
RTWTextureFormat)type),
source);
75 this->texture->SetFiltering(VisRTX::TextureFiltering::NEAREST, VisRTX::TextureFiltering::NEAREST);
80 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 *)