| 89 | } |
| 90 | |
| 91 | void RenderTexture::initWindow() { |
| 92 | auto *device{Root::getInstance()->getDevice()}; |
| 93 | |
| 94 | cc::scene::IRenderWindowInfo windowInfo; |
| 95 | windowInfo.title = _name; |
| 96 | windowInfo.width = _width; |
| 97 | windowInfo.height = _height; |
| 98 | windowInfo.renderPassInfo = getDefaultRenderPassInfo(device); |
| 99 | |
| 100 | if (_window != nullptr) { |
| 101 | _window->destroy(); |
| 102 | _window->initialize(device, windowInfo); |
| 103 | } else { |
| 104 | _window = Root::getInstance()->createWindow(windowInfo); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | void RenderTexture::initWindow(const IRenderTextureCreateInfo &info) { |
| 109 | auto *device{Root::getInstance()->getDevice()}; |
nothing calls this directly
no test coverage detected