Searched refs:imageDesc (Results 1 – 9 of 9) sorted by relevance
67 bool GrVkImage::InitImageInfo(const GrVkGpu* gpu, const ImageDesc& imageDesc, GrVkImageInfo* info) { in InitImageInfo() argument68 if (0 == imageDesc.fWidth || 0 == imageDesc.fHeight) { in InitImageInfo()74 bool isLinear = VK_IMAGE_TILING_LINEAR == imageDesc.fImageTiling; in InitImageInfo()80 if (!GrSampleCountToVkSampleCount(imageDesc.fSamples, &vkSamples)) { in InitImageInfo()84 SkASSERT(VK_IMAGE_TILING_OPTIMAL == imageDesc.fImageTiling || in InitImageInfo()88 VkImageCreateFlags createFlags = GrVkFormatIsSRGB(imageDesc.fFormat, nullptr) in InitImageInfo()95 imageDesc.fImageType, // VkImageType in InitImageInfo()96 imageDesc.fFormat, // VkFormat in InitImageInfo()97 { imageDesc.fWidth, imageDesc.fHeight, 1 }, // VkExtent3D in InitImageInfo()98 imageDesc.fLevels, // mipLevels in InitImageInfo()[all …]
34 GrVkImage::ImageDesc imageDesc; in Create() local35 imageDesc.fImageType = VK_IMAGE_TYPE_2D; in Create()36 imageDesc.fFormat = format.fInternalFormat; in Create()37 imageDesc.fWidth = width; in Create()38 imageDesc.fHeight = height; in Create()39 imageDesc.fLevels = 1; in Create()40 imageDesc.fSamples = sampleCnt; in Create()41 imageDesc.fImageTiling = VK_IMAGE_TILING_OPTIMAL; in Create()42 imageDesc.fUsageFlags = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT | in Create()44 imageDesc.fMemProps = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; in Create()[all …]
65 const GrVkImage::ImageDesc& imageDesc) { in CreateNewTexture() argument66 SkASSERT(imageDesc.fUsageFlags & VK_IMAGE_USAGE_SAMPLED_BIT); in CreateNewTexture()69 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) { in CreateNewTexture()198 GrVkImage::ImageDesc imageDesc; in reallocForMipmap() local199 imageDesc.fImageType = VK_IMAGE_TYPE_2D; in reallocForMipmap()200 imageDesc.fFormat = fInfo.fFormat; in reallocForMipmap()201 imageDesc.fWidth = fDesc.fWidth; in reallocForMipmap()202 imageDesc.fHeight = fDesc.fHeight; in reallocForMipmap()203 imageDesc.fLevels = mipLevels; in reallocForMipmap()204 imageDesc.fSamples = 1; in reallocForMipmap()[all …]
121 const GrVkImage::ImageDesc& imageDesc) { in CreateNewTextureRenderTarget() argument122 SkASSERT(imageDesc.fUsageFlags & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT); in CreateNewTextureRenderTarget()123 SkASSERT(imageDesc.fUsageFlags & VK_IMAGE_USAGE_SAMPLED_BIT); in CreateNewTextureRenderTarget()126 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) { in CreateNewTextureRenderTarget()
182 const GrVkImage::ImageDesc& imageDesc) { in CreateNewRenderTarget() argument183 SkASSERT(imageDesc.fUsageFlags & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT); in CreateNewRenderTarget()186 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) { in CreateNewRenderTarget()
695 GrVkImage::ImageDesc imageDesc; in onCreateTexture() local696 imageDesc.fImageType = VK_IMAGE_TYPE_2D; in onCreateTexture()697 imageDesc.fFormat = pixelFormat; in onCreateTexture()698 imageDesc.fWidth = desc.fWidth; in onCreateTexture()699 imageDesc.fHeight = desc.fHeight; in onCreateTexture()700 imageDesc.fLevels = linearTiling ? 1 : mipLevels; in onCreateTexture()701 imageDesc.fSamples = 1; in onCreateTexture()702 imageDesc.fImageTiling = linearTiling ? VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL; in onCreateTexture()703 imageDesc.fUsageFlags = usageFlags; in onCreateTexture()704 imageDesc.fMemProps = memProps; in onCreateTexture()[all …]
83 static bool InitImageInfo(const GrVkGpu* gpu, const ImageDesc& imageDesc, GrVkImageInfo*);
META-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...