Enable tri-linear and NPOT-tiling support in Vulkan
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2004123002 Review-Url: https://codereview.chromium.org/2004123002
This commit is contained in:
parent
a56800a05d
commit
8879186d89
@ -22,7 +22,7 @@ GrVkCaps::GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface*
|
||||
**************************************************************************/
|
||||
fMipMapSupport = true; // always available in Vulkan
|
||||
fSRGBSupport = true; // always available in Vulkan
|
||||
fNPOTTextureTileSupport = false; //TODO: figure this out
|
||||
fNPOTTextureTileSupport = true; // always available in Vulkan
|
||||
fTwoSidedStencilSupport = true; // always available in Vulkan
|
||||
fStencilWrapOpsSupport = false; //TODO: figure this out
|
||||
fDiscardRenderTargetSupport = false; //TODO: figure this out
|
||||
|
@ -44,7 +44,7 @@ GrVkSampler* GrVkSampler::Create(const GrVkGpu* gpu, const GrTextureParams& para
|
||||
createInfo.flags = 0;
|
||||
createInfo.magFilter = vkMagFilterModes[params.filterMode()];
|
||||
createInfo.minFilter = vkMinFilterModes[params.filterMode()];
|
||||
createInfo.mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST;
|
||||
createInfo.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR;
|
||||
createInfo.addressModeU = tile_to_vk_sampler_address(params.getTileModeX());
|
||||
createInfo.addressModeV = tile_to_vk_sampler_address(params.getTileModeY());
|
||||
createInfo.addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE; // Shouldn't matter
|
||||
|
Loading…
Reference in New Issue
Block a user