texture2d - getVulkanImage and support for Texture2DUsage::Attachment (#3632)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Adrian Cojocaru <adrian.cojocaru92@yahoo.com> Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -46,8 +46,12 @@ public:
|
||||
const vk::UniqueFramebuffer& getFramebuffer() const override { return framebuffer; };
|
||||
|
||||
PremultipliedImage readStillImage() {
|
||||
assert(false);
|
||||
return {};
|
||||
if (!colorTexture) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const auto& image = static_cast<Texture2D&>(*colorTexture).readImage();
|
||||
return image ? image->clone() : PremultipliedImage();
|
||||
}
|
||||
|
||||
gfx::Texture2DPtr& getTexture() {
|
||||
|
||||
Reference in New Issue
Block a user