Lines Matching defs:imageDesc
505 // This ImageDesc refers to the texture that will be read by the client. Thus even if msaa is
506 // requested, this ImageDesc describes the resolved texutre. Therefore we always have samples set
508 GrVkImage::ImageDesc imageDesc;
509 imageDesc.fImageType = VK_IMAGE_TYPE_2D;
510 imageDesc.fFormat = pixelFormat;
511 imageDesc.fWidth = desc.fWidth;
512 imageDesc.fHeight = desc.fHeight;
513 imageDesc.fLevels = 1;
514 imageDesc.fSamples = 1;
515 imageDesc.fImageTiling = linearTiling ? VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL;
516 imageDesc.fUsageFlags = usageFlags;
517 imageDesc.fMemProps = memProps;
522 imageDesc);
524 tex = GrVkTexture::CreateNewTexture(this, desc, lifeCycle, imageDesc);
743 // This ImageDesc refers to the texture that will be read by the client. Thus even if msaa is
744 // requested, this ImageDesc describes the resolved texutre. Therefore we always have samples set
746 GrVkImage::ImageDesc imageDesc;
747 imageDesc.fImageType = VK_IMAGE_TYPE_2D;
748 imageDesc.fFormat = pixelFormat;
749 imageDesc.fWidth = w;
750 imageDesc.fHeight = h;
751 imageDesc.fLevels = 1;
752 imageDesc.fSamples = 1;
753 imageDesc.fImageTiling = linearTiling ? VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL;
754 imageDesc.fUsageFlags = usageFlags;
755 imageDesc.fMemProps = memProps;
757 const GrVkImage::Resource* imageRsrc = GrVkImage::CreateResource(this, imageDesc);