diff options
| author | 2018-08-20 19:22:43 -0400 | |
|---|---|---|
| committer | 2018-08-20 19:28:00 -0400 | |
| commit | bc16f7f3cce7b3a689f45697d9f6fbd970993e32 (patch) | |
| tree | 5bdf30d31fda49f68ec7e7ec6d9bb8f4d68db051 /src/common/bit_field.h | |
| parent | Merge pull request #1104 from Subv/instanced_arrays (diff) | |
| download | yuzu-bc16f7f3cce7b3a689f45697d9f6fbd970993e32.tar.gz yuzu-bc16f7f3cce7b3a689f45697d9f6fbd970993e32.tar.xz yuzu-bc16f7f3cce7b3a689f45697d9f6fbd970993e32.zip | |
renderer_base: Make creation of the rasterizer, the responsibility of the renderers themselves
Given we use a base-class type within the renderer for the rasterizer
(RasterizerInterface), we want to allow renderers to perform more
complex initialization if they need to do such a thing. This makes it
important to reserve type information.
Given the OpenGL renderer is quite simple settings-wise, this is just a
simple shuffling of the initialization code. For something like Vulkan
however this might involve doing something like:
// Initialize and call rasterizer-specific function that requires
// the full type of the instance created.
auto raster = std::make_unique<VulkanRasterizer>(some, params);
raster->CallSomeVulkanRasterizerSpecificFunction();
// Assign to base class variable
rasterizer = std::move(raster)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions