Lines Matching defs:image

48 #include "src/image/SkImage_Gpu.h"
49 #include "src/image/SkSurface_Gpu.h"
204 SkDEBUGFAIL("No supplied vulkan memory allocator for cache image and unable to create one internally.");
622 // Copy the buffer to the image.
786 texImage->image(),
816 // This fills in the 'regions' vector in preparation for copying a buffer to an image.
1018 // Copy the buffer to the image. This call takes the raw VkBuffer instead of a GrGpuBuffer
1085 // Copy the buffer to the image. This call takes the raw VkBuffer instead of a GrGpuBuffer
1131 // Change image layout so it can be copied to.
1135 // Copy the buffer to the image.
1586 vkTex->image(), // image
1610 vkTex->image(),
1613 vkTex->image(),
1741 SkDebugf("Failed to init image info\n");
1794 // Change image layout to shader read since if we use this texture as a borrowed
1871 GrVkImage* image = texture->textureImage();
1872 image->setImageLayout(this,
1901 // Copy the buffer to the image. This call takes the raw VkBuffer instead of a GrGpuBuffer
1908 image,
1909 image->currentLayout(),
1913 // Change image layout to shader read since if we use this texture as a borrowed
1915 image->setImageLayout(this,
1927 void set_layout_and_queue_from_mutable_state(GrVkGpu* gpu, GrVkImage* image,
1931 // plans on using the image for.
1934 newLayout = image->currentLayout();
1939 uint32_t currentQueueFamilyIndex = image->currentQueueFamilyIndex();
1951 image->setImageLayoutAndQueueIndex(gpu, newLayout, dstAccess, dstStage, false,
2024 GrVkImage* image = vkRT->colorAttachment();
2030 barrier.oldLayout = image->currentLayout();
2034 barrier.image = image->image();
2035 barrier.subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, image->mipLevels(), 0, 1};
2036 this->addImageMemoryBarrier(image->resource(),
2218 GrVkImage* image;
2222 image = static_cast<GrVkTexture*>(tex)->textureImage();
2227 image = vkRT->externalAttachment();
2231 set_layout_and_queue_from_mutable_state(this, image, newInfo);
2234 image->prepareForPresent(this);
2312 // These flags are for flushing/invalidating caches and for the dst image it doesn't matter if
2541 GrVkImage* image = nullptr;
2550 image = rt->nonMSAAAttachment();
2552 image = static_cast<GrVkTexture*>(surface->asTexture())->textureImage();
2555 if (!image) {
2560 dstColorType != this->vkCaps().transferColorType(image->imageFormat(), surfaceColorType)) {
2565 image->setImageLayout(this,
2572 if (GrVkFormatBytesPerBlock(image->imageFormat()) != bpp) {
2596 // Copy the image to a buffer so we can map it to cpu memory
2603 image,
2888 // The image layout change serves as a barrier, so no semaphore is needed.