Big changes
This commit is contained in:
@@ -31,14 +31,8 @@ class RenderContext {
|
||||
vk::CommandBuffer beginFrame();
|
||||
void endFrame();
|
||||
|
||||
void transitionCurrentImage(vk::CommandBuffer commandBuffer,
|
||||
vk::ImageLayout newLayout) const {
|
||||
this->swapchain->getImage(static_cast<int>(this->currentImageIndex))
|
||||
.transitionLayout(commandBuffer, newLayout);
|
||||
}
|
||||
vk::ImageView getCurrentImageView() const {
|
||||
return this->swapchain->getImageView(
|
||||
static_cast<int>(this->currentImageIndex));
|
||||
Image& getCurrentImage() const {
|
||||
return this->swapchain->getImage(static_cast<int>(this->currentImageIndex));
|
||||
}
|
||||
|
||||
vk::Extent2D getExtent() const { return this->swapchain->getExtent(); }
|
||||
|
||||
Reference in New Issue
Block a user