cleaned up renderer
This commit is contained in:
parent
afe23851f0
commit
d661c88ee2
58 changed files with 3030 additions and 4722 deletions
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
module;
|
||||
|
||||
#ifdef CRAFTER_GRAPHICS_VULKAN
|
||||
#ifdef CRAFTER_GRAPHICS_RENDERER_VULKAN
|
||||
#include "vulkan/vulkan.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ import :VulkanBuffer;
|
|||
import :ImageVulkan;
|
||||
|
||||
export namespace Crafter {
|
||||
#ifdef CRAFTER_GRAPHICS_VULKAN
|
||||
#ifdef CRAFTER_GRAPHICS_RENDERER_VULKAN
|
||||
template <typename PixelType>
|
||||
class SamplerVulkan {
|
||||
public:
|
||||
|
|
@ -53,7 +53,7 @@ export namespace Crafter {
|
|||
samplerInfo.mipLodBias = 0.0f;
|
||||
samplerInfo.minLod = 0.0f;
|
||||
samplerInfo.maxLod = VK_LOD_CLAMP_NONE;
|
||||
VulkanDevice::CheckVkResult(vkCreateSampler(VulkanDevice::device, &samplerInfo, nullptr, &textureSampler));
|
||||
Device::CheckVkResult(vkCreateSampler(Device::device, &samplerInfo, nullptr, &textureSampler));
|
||||
|
||||
imageInfo = {
|
||||
.sampler = textureSampler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue