mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Warning fixes
This commit is contained in:
1 parent
d6537d22e4
commit
85304d58a8
3 files changed
+5
-5
No files matched your search
@@ -1315,7 +1315,7 @@ static std::string surface_transforms_to_string(VkSurfaceTransformFlagsKHR trans
|
||||
}
|
||||
|
||||
bool VulkanContext::InitSwapchain() {
|
||||
_assert_(physical_device_ >= 0 && physical_device_ < physical_devices_.size());
|
||||
_assert_(physical_device_ >= 0 && physical_device_ < (int)physical_devices_.size());
|
||||
if (!surface_) {
|
||||
ERROR_LOG(Log::G3D, "VK: No surface, can't create swapchain");
|
||||
return false;
|
||||
|
||||
@@ -1629,7 +1629,7 @@ VKRPipelineLayout *VulkanRenderManager::CreatePipelineLayout(BindingType *bindin
|
||||
memcpy(layout->bindingTypes, bindingTypes, sizeof(BindingType) * bindingTypesCount);
|
||||
|
||||
VkDescriptorSetLayoutBinding bindings[VKRPipelineLayout::MAX_DESC_SET_BINDINGS];
|
||||
for (int i = 0; i < bindingTypesCount; i++) {
|
||||
for (int i = 0; i < (int)bindingTypesCount; i++) {
|
||||
bindings[i].binding = i;
|
||||
bindings[i].descriptorCount = 1;
|
||||
bindings[i].pImmutableSamplers = nullptr;
|
||||
@@ -1869,7 +1869,7 @@ void VKRPipelineLayout::FlushDescSets(VulkanContext *vulkan, int frame, QueuePro
|
||||
void VulkanRenderManager::SanityCheckPassesOnAdd() {
|
||||
#if _DEBUG
|
||||
// Check that we don't have any previous passes that write to the backbuffer, that must ALWAYS be the last one.
|
||||
for (int i = 0; i < steps_.size(); i++) {
|
||||
for (int i = 0; i < (int)steps_.size(); i++) {
|
||||
if (steps_[i]->stepType == VKRStepType::RENDER) {
|
||||
_dbg_assert_msg_(steps_[i]->render.framebuffer != nullptr, "Adding second backbuffer pass? Not good!");
|
||||
}
|
||||
|
||||
@@ -271,7 +271,7 @@ public:
|
||||
}
|
||||
|
||||
void SetDynamicUniformData(const void *data, size_t size) {
|
||||
_dbg_assert_(size <= uboSize_);
|
||||
_dbg_assert_((int)size <= uboSize_);
|
||||
memcpy(ubo_, data, size);
|
||||
}
|
||||
|
||||
@@ -822,7 +822,7 @@ bool VKTexture::Create(VkCommandBuffer cmd, VulkanBarrierBatch *postBarriers, Vu
|
||||
if (desc.initData.size()) {
|
||||
UpdateInternal(cmd, pushBuffer, desc.initData.data(), desc.initDataCallback, (int)desc.initData.size());
|
||||
// Generate the rest of the mips automatically.
|
||||
if (desc.initData.size() < mipLevels_) {
|
||||
if ((int)desc.initData.size() < mipLevels_) {
|
||||
vkTex_->GenerateMips(cmd, (int)desc.initData.size(), false);
|
||||
layout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user