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