58 int type = this->
GetInt({
"format" });
59 int flags = this->
GetInt({
"filter" });
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);