VkDeviceMemory fAlloc;
Flags fFlags;
- Resource() : INHERITED(), fImage(nullptr), fAlloc(nullptr), fFlags(kNo_Flags) {}
+ Resource() : INHERITED(), fImage(VK_NULL_HANDLE), fAlloc(VK_NULL_HANDLE), fFlags(kNo_Flags) {}
Resource(VkImage image, VkDeviceMemory alloc, Flags flags)
: fImage(image), fAlloc(alloc), fFlags(flags) {}
GR_VK_CALL(gpu->vkInterface(), DestroyPipelineLayout(gpu->device(),
fPipelineLayout,
nullptr));
- fPipelineLayout = nullptr;
+ fPipelineLayout = VK_NULL_HANDLE;
}
if (fDSLayout[0]) {
GR_VK_CALL(gpu->vkInterface(), DestroyDescriptorSetLayout(gpu->device(), fDSLayout[0],
nullptr));
- fDSLayout[0] = nullptr;
+ fDSLayout[0] = VK_NULL_HANDLE;
}
if (fDSLayout[1]) {
GR_VK_CALL(gpu->vkInterface(), DestroyDescriptorSetLayout(gpu->device(), fDSLayout[1],
nullptr));
- fDSLayout[1] = nullptr;
+ fDSLayout[1] = VK_NULL_HANDLE;
}
if (fVertexUniformBuffer) {
fPipeline = nullptr;
fDescriptorPool->unrefAndAbandon();
fDescriptorPool = nullptr;
- fPipelineLayout = nullptr;
- fDSLayout[0] = nullptr;
- fDSLayout[1] = nullptr;
+ fPipelineLayout = VK_NULL_HANDLE;
+ fDSLayout[0] = VK_NULL_HANDLE;
+ fDSLayout[1] = VK_NULL_HANDLE;
fVertexUniformBuffer->abandon();
fFragmentUniformBuffer->abandon();
class GrVkRenderPass : public GrVkResource {
public:
- GrVkRenderPass() : INHERITED(), fRenderPass(nullptr) {}
+ GrVkRenderPass() : INHERITED(), fRenderPass(VK_NULL_HANDLE) {}
void initSimple(const GrVkGpu* gpu, const GrVkRenderTarget& target);
struct AttachmentsDescriptor {
GR_MAKE_BITFIELD_OPS(GrVkRenderPass::AttachmentFlags);
-#endif
\ No newline at end of file
+#endif