-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrxTest.cpp
More file actions
25 lines (22 loc) · 895 Bytes
/
Copy pathPrxTest.cpp
File metadata and controls
25 lines (22 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "PrxTest.h"
namespace prx {
/*void PrxTest::bindTexture() {
globalPool = PrxDescriptorPool::Builder(prxDevice)
.setMaxSets(PrxSwapChain::MAX_FRAMES_IN_FLIGHT)
.addPoolSize(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, PrxSwapChain::MAX_FRAMES_IN_FLIGHT)
.addPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, PrxSwapChain::MAX_FRAMES_IN_FLIGHT)
.build();
VkDescriptorImageInfo imageInfo{};
imageInfo.sampler = getSampler();
imageInfo.imageView = getImageView();
imageInfo.imageLayout = getImageLayout();
std::vector<VkDescriptorSet> globalDescriptorSets(PrxSwapChain::MAX_FRAMES_IN_FLIGHT);
for (int i = 0; i < globalDescriptorSets.size(); i++) {
auto bufferInfo = uboBuffers[i]->descriptorInfo();
PrxDescriptorWriter(*globalSetLayout, *globalPool)
.writeBuffer(0, &bufferInfo)
.writeImage(1, &imageInfo)
.build(globalDescriptorSets[i]);
}
}*/
}