Changeset cd487fb in opengl-game for graphics-pipeline_vulkan.cpp


Ignore:
Timestamp:
Nov 12, 2019, 9:48:50 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
b8777b7
Parents:
e3bef3a
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (11/12/19 21:25:58)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (11/12/19 21:48:50)
Message:

Replace some couts with runtime_exceptions and, in vulkangame, only call SDL_SetRenderTarget once, during initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graphics-pipeline_vulkan.cpp

    re3bef3a rcd487fb  
    33#include <fstream>
    44#include <stdexcept>
    5 #include <iostream>
    65
    76using namespace std;
    8 
    9 // TODO: Remove any instances of cout and instead throw exceptions
    107
    118GraphicsPipeline_Vulkan::GraphicsPipeline_Vulkan(VkPhysicalDevice physicalDevice, VkDevice device,
     
    315312               break;
    316313            default:
    317                cout << "Unknown descriptor type: " << descriptorWrites[j].descriptorType << endl;
     314               throw runtime_error("Unknown descriptor type: " + to_string(descriptorWrites[j].descriptorType));
    318315         }
    319316      }
Note: See TracChangeset for help on using the changeset viewer.