Home
last modified time | relevance | path

Searched refs:texture (Results 1 - 25 of 1156) sorted by relevance

12345678910>>...47

/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DSampler.cpp42 Mipmap &mipmap = texture.mipmap[level]; in Sampler()
73 texture.LOD = 0.0f; in Sampler()
76 texture.baseLevel = 0; in Sampler()
77 texture.maxLevel = 1000; in Sampler()
78 texture.maxLod = MAX_TEXTURE_LOD; in Sampler()
79 texture.minLod = 0; in Sampler()
119 Mipmap &mipmap = texture.mipmap[level]; in setTextureLevel()
137 texture.widthHeightLOD[0] = width * exp2LOD; in setTextureLevel()
138 texture.widthHeightLOD[1] = width * exp2LOD; in setTextureLevel()
139 texture in setTextureLevel()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DTextureViewValidationTests.cpp78 // Test creating texture view on a 2D non-array texture
80 wgpu::Texture texture = Create2DArrayTexture(device, 1); in TEST_F() local
89 ASSERT_DEVICE_ERROR(texture.CreateView(&descriptor)); in TEST_F()
96 ASSERT_DEVICE_ERROR(texture.CreateView(&descriptor)); in TEST_F()
99 // It is OK to create a 2D texture view on a 2D texture. in TEST_F()
103 texture.CreateView(&descriptor); in TEST_F()
106 // It is an error to view a layer past the end of the texture. in TEST_F()
110 ASSERT_DEVICE_ERROR(texture in TEST_F()
167 wgpu::Texture texture = Create2DArrayTexture(device, kDefaultArrayLayers); TEST_F() local
247 wgpu::Texture texture = Create3DTexture(device); TEST_F() local
350 wgpu::Texture texture = Create2DArrayTexture(device, kDefaultArrayLayers); TEST_F() local
409 wgpu::Texture texture = Create2DArrayTexture(device, kDefaultArrayLayers); TEST_F() local
452 wgpu::Texture texture = Create3DTexture(device); TEST_F() local
497 wgpu::Texture texture = Create2DArrayTexture(device, kDefaultArrayLayers); TEST_F() local
574 wgpu::Texture texture = Create2DArrayTexture(device, 1); TEST_F() local
589 wgpu::Texture texture = Create2DArrayTexture(device, 1); TEST_F() local
606 wgpu::Texture texture = device.CreateTexture(&descriptor); TEST_F() local
622 wgpu::Texture texture = device.CreateTexture(&descriptor); TEST_F() local
638 wgpu::Texture texture = device.CreateTexture(&descriptor); TEST_F() local
663 wgpu::Texture texture = TEST_F() local
682 wgpu::Texture texture = TEST_F() local
707 wgpu::Texture texture = TEST_F() local
726 wgpu::Texture texture = TEST_F() local
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCommandValidation.cpp246 "Required size for texture data layout (%u) exceeds the linear data size (%u) with " in ValidateLinearTextureData()
268 const TextureBase* texture = textureCopy.texture; in ValidateImageCopyTexture() local
269 DAWN_TRY(device->ValidateObject(texture)); in ValidateImageCopyTexture()
270 DAWN_INVALID_IF(textureCopy.mipLevel >= texture->GetNumMipLevels(), in ValidateImageCopyTexture()
272 textureCopy.mipLevel, texture->GetNumMipLevels(), texture); in ValidateImageCopyTexture()
276 SelectFormatAspects(texture->GetFormat(), textureCopy.aspect) == Aspect::None, in ValidateImageCopyTexture()
277 "%s format (%s) does not have the selected aspect (%s).", texture, in ValidateImageCopyTexture() local
278 texture in ValidateImageCopyTexture()
300 const TextureBase* texture = textureCopy.texture; ValidateTextureCopyRange() local
324 &textureCopy.origin, &copySize, texture, textureCopy.mipLevel, &mipSize); ValidateTextureCopyRange() local
441 ValidateCanUseAs(const TextureBase* texture, wgpu::TextureUsage usage) ValidateCanUseAs() argument
449 ValidateInternalCanUseAs(const TextureBase* texture, wgpu::TextureUsage usage) ValidateInternalCanUseAs() argument
[all...]
H A DBindGroupLayout.cpp52 "%s texture views cannot be used as storage textures.", dimension); in ValidateStorageTextureViewDimension()
98 if (entry.texture.sampleType != wgpu::TextureSampleType::Undefined) { in ValidateBindGroupLayoutEntry()
101 const TextureBindingLayout& texture = entry.texture; in ValidateBindGroupLayoutEntry() local
102 DAWN_TRY(ValidateTextureSampleType(texture.sampleType)); in ValidateBindGroupLayoutEntry()
106 if (texture.viewDimension != wgpu::TextureViewDimension::Undefined) { in ValidateBindGroupLayoutEntry()
107 DAWN_TRY(ValidateTextureViewDimension(texture.viewDimension)); in ValidateBindGroupLayoutEntry()
108 viewDimension = texture.viewDimension; in ValidateBindGroupLayoutEntry()
112 texture.multisampled && viewDimension != wgpu::TextureViewDimension::e2D, in ValidateBindGroupLayoutEntry()
113 "View dimension (%s) for a multisampled texture binding in ValidateBindGroupLayoutEntry()
[all...]
/third_party/vk-gl-cts/modules/internal/
H A DditImageIOTests.cpp54 tcu::TextureLevel texture; in iterate() local
55 tcu::ImageIO::loadImage(texture, m_testCtx.getArchive(), m_filename.c_str()); in iterate()
57 m_testCtx.getLog() << TestLog::Message << "Loaded " << texture.getWidth() << "x" << texture.getHeight() << "x" << texture.getDepth() << " image with format " << texture.getFormat() << TestLog::EndMessage; in iterate()
60 TCU_CHECK(texture.getAccess().getRowPitch() == texture.getWidth()*texture.getFormat().getPixelSize()); in iterate()
61 TCU_CHECK(texture in iterate()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DD3D12ResourceWrappingTests.cpp158 // Test a successful wrapping of an D3D12Resource in a texture
162 wgpu::Texture texture; in TEST_P() local
164 WrapSharedHandle(&baseDawnDescriptor, &baseD3dDescriptor, &texture, &d3d11Texture); in TEST_P()
166 ASSERT_NE(texture.Get(), nullptr); in TEST_P()
178 wgpu::Texture texture; in TEST_P() local
180 WrapSharedHandle(&baseDawnDescriptor, &baseD3dDescriptor, &texture, &d3d11Texture); in TEST_P()
182 ASSERT_NE(texture.Get(), nullptr); in TEST_P()
193 wgpu::Texture texture; in TEST_P() local
196 WrapSharedHandle(&baseDawnDescriptor, &baseD3dDescriptor, &texture, &d3d11Texture)); in TEST_P()
198 ASSERT_EQ(texture in TEST_P()
206 wgpu::Texture texture; TEST_P() local
219 wgpu::Texture texture; TEST_P() local
232 wgpu::Texture texture; TEST_P() local
245 wgpu::Texture texture; TEST_P() local
258 wgpu::Texture texture; TEST_P() local
271 wgpu::Texture texture; TEST_P() local
284 wgpu::Texture texture; TEST_P() local
297 wgpu::Texture texture; TEST_P() local
592 wgpu::Texture texture; TEST_P() local
641 wgpu::Texture texture; TEST_P() local
663 wgpu::Texture texture; TEST_P() local
[all...]
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fNegativeTextureApiTests.cpp127 : TestCaseGroup(context, "texture", "Negative Texture API Cases") in NegativeTextureApiTests()
141 m_log << TestLog::Section("", "GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1)."); in init()
154 GLuint texture[2]; in init()
155 glGenTextures(2, texture); in init()
164 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if texture was previously created with a target that doesn't match that of target."); in init()
165 glBindTexture(GL_TEXTURE_2D, texture[0]); in init()
167 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[0]); in init()
169 glBindTexture(GL_TEXTURE_3D, texture[0]); in init()
171 glBindTexture(GL_TEXTURE_2D_ARRAY, texture[0]); in init()
174 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[ in init()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcViewportArrayTests.hpp178 struct texture struct in glcts::ViewportArray::Utils
180 texture(deqp::Context& context);
181 ~texture();
590 virtual bool checkResults(Utils::texture& texture_0, Utils::texture& texture_1, glw::GLuint draw_call_index);
601 virtual void prepareTextures(Utils::texture& texture_0, Utils::texture& texture_1);
605 virtual void setupFramebuffer(Utils::framebuffer& framebuffer, Utils::texture& texture_0,
606 Utils::texture& texture_1);
616 void prepareTextureR32I(Utils::texture
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_fs_linear.c52 const struct lp_jit_texture *texture; member
105 * effectively the pixel shader was just a texture fetch which has
173 * XXX: migrate this to use Jose's quad blitter texture fetch routines.
180 const struct lp_jit_texture *texture = samp->texture; in fetch_row() local
183 (const uint32_t *)((const uint8_t *)texture->base + in fetch_row()
184 yy * texture->row_stride[0]); in fetch_row()
198 /* Version of fetch_row which can cope with texture edges. In
206 const struct lp_jit_texture *texture = samp->texture; in fetch_row_clamped() local
234 const struct lp_jit_texture *texture = samp->texture; fetch_row_xy_clamped() local
256 init_nearest_sampler(struct nearest_sampler *samp, const struct lp_jit_texture *texture, int x0, int y0, int width, int height, float s0, float dsdx, float dsdy, float t0, float dtdx, float dtdy, float w0, float dwdx, float dwdy) init_nearest_sampler() argument
364 const struct lp_jit_texture *texture = &context->textures[0]; blit_rgba_blit() local
416 const struct lp_jit_texture *texture = &context->textures[0]; blit_rgb1_blit() local
[all...]
H A Dlp_linear_fastpath.c70 const struct lp_jit_texture *texture = &context->textures[0]; in lp_linear_blit_rgba_blit() local
81 const int src_x = x + util_iround(a0[1][0]*texture->width - 0.5f); in lp_linear_blit_rgba_blit()
82 const int src_y = y + util_iround(a0[1][1]*texture->height - 0.5f); in lp_linear_blit_rgba_blit()
84 const uint8_t *src = texture->base; in lp_linear_blit_rgba_blit()
85 const unsigned src_stride = texture->row_stride[0]; in lp_linear_blit_rgba_blit()
91 src_x + width > texture->width || in lp_linear_blit_rgba_blit()
92 src_y + height > texture->height) in lp_linear_blit_rgba_blit()
119 const struct lp_jit_texture *texture = &context->textures[0]; in lp_linear_blit_rgb1_blit() local
132 const int src_x = x + util_iround(a0[1][0]*texture->width - 0.5f); in lp_linear_blit_rgb1_blit()
133 const int src_y = y + util_iround(a0[1][1]*texture in lp_linear_blit_rgb1_blit()
[all...]
H A Dlp_linear_sampler.c54 * Tolerance for texture coordinate derivatives when doing linear filtering.
81 * Unstretched blit of a bgra texture.
87 const struct lp_jit_texture *texture = samp->texture; in fetch_bgra_memcpy() local
89 (const uint32_t *)((const uint8_t *)texture->base + in fetch_bgra_memcpy()
90 (samp->t >> FIXED16_SHIFT) * texture->row_stride[0]); in fetch_bgra_memcpy()
111 * Unstretched blit of a bgrx texture.
117 const struct lp_jit_texture *texture = samp->texture; in fetch_bgrx_memcpy() local
119 (const uint32_t *)((const uint8_t *)texture in fetch_bgrx_memcpy()
150 const struct lp_jit_texture *texture = samp->texture; fetch_bgra_axis_aligned() local
173 const struct lp_jit_texture *texture = samp->texture; fetch_bgrx_axis_aligned() local
198 const struct lp_jit_texture *texture = samp->texture; fetch_bgra() local
229 const struct lp_jit_texture *texture = samp->texture; fetch_bgrx() local
261 const struct lp_jit_texture *texture = samp->texture; fetch_bgra_clamp() local
294 const struct lp_jit_texture *texture = samp->texture; fetch_bgrx_clamp() local
330 const struct lp_jit_texture *texture = samp->texture; fetch_and_stretch_bgra_row() local
432 const struct lp_jit_texture *texture = samp->texture; fetch_bgra_linear() local
486 const struct lp_jit_texture *texture = samp->texture; fetch_bgra_clamp_linear() local
717 lp_linear_init_sampler(struct lp_linear_sampler *samp, const struct lp_tgsi_texture_info *info, const struct lp_sampler_static_state *sampler_state, const struct lp_jit_texture *texture, int x0, int y0, int width, int height, const float (*a0)[4], const float (*dadx)[4], const float (*dady)[4]) lp_linear_init_sampler() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DStream.cpp43 plane.texture = nullptr; in Stream()
52 if (plane.texture != nullptr) in ~Stream()
54 plane.texture->releaseStream(); in ~Stream()
135 mPlanes[0].texture = glState.getTargetTexture(gl::TextureType::External); in createConsumerGLTextureExternal()
136 ASSERT(mPlanes[0].texture != nullptr); in createConsumerGLTextureExternal()
137 mPlanes[0].texture->bindStream(this); in createConsumerGLTextureExternal()
151 mPlanes[i].texture = in createConsumerGLTextureExternal()
153 ASSERT(mPlanes[i].texture != nullptr); in createConsumerGLTextureExternal()
162 mPlanes[i].texture->bindStream(this); in createConsumerGLTextureExternal()
204 if (mPlanes[i].texture ! in consumerAcquire()
240 validateD3D11Texture(const void *texture, const AttributeMap &attributes) const validateD3D11Texture() argument
250 postD3D11Texture(void *texture, const AttributeMap &attributes) postD3D11Texture() argument
[all...]
/third_party/skia/third_party/externals/angle2/samples/sample_util/
H A Dtexture_utils.cpp15 // Generate a texture object in CreateSimpleTexture2D()
16 GLuint texture; in CreateSimpleTexture2D() local
17 glGenTextures(1, &texture); in CreateSimpleTexture2D()
19 // Bind the texture object in CreateSimpleTexture2D()
20 glBindTexture(GL_TEXTURE_2D, texture); in CreateSimpleTexture2D()
22 // Load the texture: 2x2 Image, 3 bytes per pixel (R, G, B) in CreateSimpleTexture2D()
37 return texture; in CreateSimpleTexture2D()
42 // Generate a texture object in CreateSimpleTextureCubemap()
43 GLuint texture; in CreateSimpleTextureCubemap() local
44 glGenTextures(1, &texture); in CreateSimpleTextureCubemap()
109 GLuint texture; CreateMipMappedTexture2D() local
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DComputeShaderTest.cpp23 void createMockOutputImage(GLuint texture, GLenum internalFormat, GLint width, GLint height) in createMockOutputImage() argument
25 glBindTexture(GL_TEXTURE_2D, texture); in createMockOutputImage()
29 glBindImageTexture(0, texture, 0, GL_FALSE, 0, GL_WRITE_ONLY, internalFormat); in createMockOutputImage()
40 GLTexture texture[2]; in runSharedMemoryTest() local
43 glBindTexture(GL_TEXTURE_2D, texture[0]); in runSharedMemoryTest()
50 glBindTexture(GL_TEXTURE_2D, texture[1]); in runSharedMemoryTest()
58 glBindImageTexture(0, texture[0], 0, GL_FALSE, 0, GL_READ_ONLY, internalFormat); in runSharedMemoryTest()
61 glBindImageTexture(1, texture[1], 0, GL_FALSE, 0, GL_WRITE_ONLY, internalFormat); in runSharedMemoryTest()
73 glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture[1], in runSharedMemoryTest()
389 GLTexture texture; in TEST_P() local
443 GLTexture texture; TEST_P() local
515 GLTexture texture; TEST_P() local
728 GLTexture texture; TEST_P() local
818 GLTexture texture; TEST_P() local
1249 GLTexture texture[3]; TEST_P() local
1318 GLTexture texture[2]; TEST_P() local
1378 GLTexture texture[2]; TEST_P() local
1439 GLTexture texture[2]; TEST_P() local
1507 GLTexture texture[2]; TEST_P() local
1576 GLTexture texture[2]; TEST_P() local
1643 GLTexture texture[2]; TEST_P() local
1718 GLTexture texture[2]; TEST_P() local
1789 GLTexture texture[2]; TEST_P() local
1860 GLTexture texture[2]; TEST_P() local
1949 GLTexture texture[4]; TEST_P() local
2099 GLTexture texture; TEST_P() local
2637 GLTexture texture; TEST_P() local
2712 GLTexture texture[3]; TEST_P() local
2772 GLTexture texture[3]; TEST_P() local
3189 GLTexture texture[2]; TEST_P() local
3350 GLTexture texture[2]; TEST_P() local
3408 GLTexture texture[2]; TEST_P() local
3467 GLTexture texture[2]; TEST_P() local
3572 GLTexture texture[3]; TEST_P() local
3672 GLTexture texture; TEST_P() local
3746 GLTexture texture; TEST_P() local
3826 GLTexture texture; TEST_P() local
4024 GLTexture texture; TEST_P() local
4459 GLTexture texture; TEST_P() local
4510 GLTexture texture; TEST_P() local
4685 GLTexture texture; TEST_P() local
4762 GLTexture texture; TEST_P() local
[all...]
H A DSRGBFramebufferTest.cpp92 GLTexture texture; in TEST_P() local
93 glBindTexture(GL_TEXTURE_2D, texture.get()); in TEST_P()
99 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
133 GLTexture texture; in TEST_P() local
134 glBindTexture(GL_TEXTURE_2D, texture.get()); in TEST_P()
140 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
151 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
178 GLTexture texture; in TEST_P() local
179 glBindTexture(GL_TEXTURE_2D, texture.get()); in TEST_P()
184 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture in TEST_P()
215 GLTexture texture; TEST_P() local
322 GLTexture texture; TEST_P() local
349 GLTexture texture; TEST_P() local
[all...]
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_texture.c154 struct lima_sampler_view *texture, void *pdesc, in lima_update_tex_desc()
167 if (!texture) in lima_update_tex_desc()
170 switch (texture->base.target) { in lima_update_tex_desc()
191 first_level = texture->base.u.tex.first_level; in lima_update_tex_desc()
192 last_level = texture->base.u.tex.last_level; in lima_update_tex_desc()
193 first_layer = texture->base.u.tex.first_layer; in lima_update_tex_desc()
260 lima_texture_desc_set_res(ctx, desc, texture->base.texture, in lima_update_tex_desc()
265 lima_calc_tex_desc_size(struct lima_sampler_view *texture) in lima_calc_tex_desc_size() argument
270 if (!texture) in lima_calc_tex_desc_size()
153 lima_update_tex_desc(struct lima_context *ctx, struct lima_sampler_state *sampler, struct lima_sampler_view *texture, void *pdesc, unsigned desc_size) lima_update_tex_desc() argument
300 struct lima_sampler_view *texture = lima_sampler_view(lima_tex->textures[i]); lima_update_textures() local
314 struct lima_sampler_view *texture = lima_sampler_view(lima_tex->textures[i]); lima_update_textures() local
324 struct lima_sampler_view *texture = lima_sampler_view(lima_tex->textures[i]); lima_update_textures() local
[all...]
/third_party/skia/src/gpu/vk/
H A DGrVkTexture.cpp26 sk_sp<GrVkImage> texture, in GrVkTexture()
29 texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTexture()
31 texture->isProtected() ? GrProtected::kYes : GrProtected::kNo, in GrVkTexture()
33 , fTexture(std::move(texture)) in GrVkTexture()
55 sk_sp<GrVkImage> texture, GrMipmapStatus mipmapStatus, in GrVkTexture()
57 : GrSurface(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTexture()
58 , GrTexture(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo, in GrVkTexture()
60 , fTexture(std::move(texture)) in GrVkTexture()
73 sk_sp<GrVkImage> texture, in GrVkTexture()
75 : GrSurface(gpu, dimensions, texture in GrVkTexture()
23 GrVkTexture(GrVkGpu* gpu, SkBudgeted budgeted, SkISize dimensions, sk_sp<GrVkImage> texture, GrMipmapStatus mipmapStatus) GrVkTexture() argument
54 GrVkTexture(GrVkGpu* gpu, SkISize dimensions, sk_sp<GrVkImage> texture, GrMipmapStatus mipmapStatus, GrWrapCacheable cacheable, GrIOType ioType, bool isExternal) GrVkTexture() argument
71 GrVkTexture(GrVkGpu* gpu, SkISize dimensions, sk_sp<GrVkImage> texture, GrMipmapStatus mipmapStatus) GrVkTexture() argument
92 sk_sp<GrVkImage> texture = GrVkImage::MakeTexture( MakeNewTexture() local
111 sk_sp<GrVkImage> texture = GrVkImage::MakeWrapped(gpu, MakeWrappedTexture() local
[all...]
H A DGrVkTextureRenderTarget.cpp28 sk_sp<GrVkImage> texture, in GrVkTextureRenderTarget()
32 : GrSurface(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTextureRenderTarget()
33 , GrVkTexture(gpu, dimensions, std::move(texture), mipmapStatus) in GrVkTextureRenderTarget()
51 sk_sp<GrVkImage> texture, in GrVkTextureRenderTarget()
56 : GrSurface(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTextureRenderTarget()
57 , GrVkTexture(gpu, dimensions, std::move(texture), mipmapStatus) in GrVkTextureRenderTarget()
65 sk_sp<GrVkImage> texture, in create_rt_attachments()
77 *resolveAttachment = std::move(texture); in create_rt_attachments()
79 *colorAttachment = std::move(texture); in create_rt_attachments()
93 sk_sp<GrVkImage> texture in MakeNewTextureRenderTarget() local
24 GrVkTextureRenderTarget( GrVkGpu* gpu, SkBudgeted budgeted, SkISize dimensions, sk_sp<GrVkImage> texture, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, GrMipmapStatus mipmapStatus) GrVkTextureRenderTarget() argument
48 GrVkTextureRenderTarget( GrVkGpu* gpu, SkISize dimensions, sk_sp<GrVkImage> texture, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, GrMipmapStatus mipmapStatus, GrWrapCacheable cacheable) GrVkTextureRenderTarget() argument
63 create_rt_attachments(GrVkGpu* gpu, SkISize dimensions, VkFormat format, int sampleCnt, GrProtected isProtected, sk_sp<GrVkImage> texture, sk_sp<GrVkImage>* colorAttachment, sk_sp<GrVkImage>* resolveAttachment) create_rt_attachments() argument
135 sk_sp<GrVkImage> texture = GrVkImage::MakeWrapped(gpu, MakeWrappedTextureRenderTarget() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_sampler.c39 const struct pipe_resource *texture, in default_template()
45 /* XXX: Check if format is compatible with texture->format. in default_template()
48 view->target = texture->target; in default_template()
51 view->u.tex.last_level = texture->last_level; in default_template()
53 view->u.tex.last_layer = texture->target == PIPE_TEXTURE_3D ? in default_template()
54 texture->depth0 - 1 : texture->array_size - 1; in default_template()
87 const struct pipe_resource *texture, in u_sampler_view_default_template()
92 texture, in u_sampler_view_default_template()
99 const struct pipe_resource *texture, in u_sampler_view_default_dx9_template()
38 default_template(struct pipe_sampler_view *view, const struct pipe_resource *texture, enum pipe_format format, unsigned expand_green_blue) default_template() argument
86 u_sampler_view_default_template(struct pipe_sampler_view *view, const struct pipe_resource *texture, enum pipe_format format) u_sampler_view_default_template() argument
98 u_sampler_view_default_dx9_template(struct pipe_sampler_view *view, const struct pipe_resource *texture, enum pipe_format format) u_sampler_view_default_dx9_template() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DUtilsD3D12.cpp71 D3D12_TEXTURE_COPY_LOCATION ComputeTextureCopyLocationForTexture(const Texture* texture, in ComputeTextureCopyLocationForTexture() argument
76 copyLocation.pResource = texture->GetD3D12Resource(); in ComputeTextureCopyLocationForTexture()
78 copyLocation.SubresourceIndex = texture->GetSubresourceIndex(level, layer, aspect); in ComputeTextureCopyLocationForTexture()
84 const Texture* texture, in ComputeBufferLocationForCopyTextureRegion()
95 texture->GetD3D12CopyableSubresourceFormat(aspect); in ComputeBufferLocationForCopyTextureRegion()
152 Texture* texture, in RecordCopyBufferToTextureFromTextureCopySplit()
158 ComputeTextureCopyLocationForTexture(texture, textureMiplevel, textureLayer, aspect); in RecordCopyBufferToTextureFromTextureCopySplit()
167 ComputeBufferLocationForCopyTextureRegion(texture, bufferResource, info.bufferSize, in RecordCopyBufferToTextureFromTextureCopySplit()
185 Texture* texture, in CopyBufferTo2DTextureWithCopySplit()
189 const TexelBlockInfo& blockInfo = texture in CopyBufferTo2DTextureWithCopySplit()
83 ComputeBufferLocationForCopyTextureRegion( const Texture* texture, ID3D12Resource* bufferResource, const Extent3D& bufferSize, const uint64_t offset, const uint32_t rowPitch, Aspect aspect) ComputeBufferLocationForCopyTextureRegion() argument
147 RecordCopyBufferToTextureFromTextureCopySplit(ID3D12GraphicsCommandList* commandList, const TextureCopySubresource& baseCopySplit, ID3D12Resource* bufferResource, uint64_t baseOffset, uint64_t bufferBytesPerRow, Texture* texture, uint32_t textureMiplevel, uint32_t textureLayer, Aspect aspect) RecordCopyBufferToTextureFromTextureCopySplit() argument
178 CopyBufferTo2DTextureWithCopySplit(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo2DTextureWithCopySplit() argument
223 CopyBufferTo3DTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo3DTexture() argument
243 RecordCopyBufferToTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) RecordCopyBufferToTexture() argument
266 RecordCopyTextureToBufferFromTextureCopySplit(ID3D12GraphicsCommandList* commandList, const TextureCopySubresource& baseCopySplit, Buffer* buffer, uint64_t baseOffset, uint64_t bufferBytesPerRow, Texture* texture, uint32_t textureMiplevel, uint32_t textureLayer, Aspect aspect) RecordCopyTextureToBufferFromTextureCopySplit() argument
297 Copy2DTextureToBufferWithCopySplit(ID3D12GraphicsCommandList* commandList, const TextureCopy& textureCopy, const BufferCopy& bufferCopy, Texture* texture, Buffer* buffer, const Extent3D& copySize) Copy2DTextureToBufferWithCopySplit() argument
341 Copy3DTextureToBuffer(ID3D12GraphicsCommandList* commandList, const TextureCopy& textureCopy, const BufferCopy& bufferCopy, Texture* texture, Buffer* buffer, const Extent3D& copySize) Copy3DTextureToBuffer() argument
361 RecordCopyTextureToBuffer(ID3D12GraphicsCommandList* commandList, const TextureCopy& textureCopy, const BufferCopy& bufferCopy, Texture* texture, Buffer* buffer, const Extent3D& copySize) RecordCopyTextureToBuffer() argument
[all...]
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fNegativeBufferApiTests.cpp284 deUint32 texture = 0x1234; in read_pixels_fbo_format_mismatch() local
287 ctx.glGenTextures (1, &texture); in read_pixels_fbo_format_mismatch()
288 ctx.glBindTexture (GL_TEXTURE_2D, texture); in read_pixels_fbo_format_mismatch()
292 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in read_pixels_fbo_format_mismatch()
298 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in read_pixels_fbo_format_mismatch()
305 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in read_pixels_fbo_format_mismatch()
312 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in read_pixels_fbo_format_mismatch()
323 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in read_pixels_fbo_format_mismatch()
367 ctx.glDeleteTextures (1, &texture); in read_pixels_fbo_format_mismatch()
515 deUint32 texture in clear_bufferiv() local
565 deUint32 texture = 0x1234; clear_bufferuiv() local
612 deUint32 texture = 0x1234; clear_bufferfv() local
760 deUint32 texture = 0x1234; draw_buffers() local
958 deUint32 texture = 0x1234; read_buffer() local
1153 GLuint texture[] = {0x1234, 0x1234}; framebuffer_texture() local
1356 deUint32 texture[2]; blit_framebuffer() local
1688 deUint32 texture = 0x1234; invalidate_framebuffer() local
1737 deUint32 texture = 0x1234; invalidate_sub_framebuffer() local
1876 deUint32 texture[5]; copy_image_sub_data() local
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
H A DEGLImageWrappingTests.cpp67 GLuint texture) in ScopedEGLImage()
72 mTexture(texture) { in ScopedEGLImage()
150 WGPUTexture texture = dawn_native::opengl::WrapExternalEGLImage(device.Get(), &externDesc); in WrapEGLImage() local
151 return wgpu::Texture::Acquire(texture); in WrapEGLImage()
177 // Test a successful wrapping of an EGLImage in a texture
181 wgpu::Texture texture = WrapEGLImage(&descriptor, image.getImage()); in TEST_P() local
182 ASSERT_NE(texture.Get(), nullptr); in TEST_P()
185 // Test a successful wrapping of an EGLImage in a texture with DawnTextureInternalUsageDescriptor
194 wgpu::Texture texture = WrapEGLImage(&descriptor, image.getImage()); in TEST_P() local
195 ASSERT_NE(texture in TEST_P()
63 ScopedEGLImage(PFNEGLDESTROYIMAGEPROC destroyImage, PFNGLDELETETEXTURESPROC deleteTextures, EGLDisplay display, EGLImage image, GLuint texture) ScopedEGLImage() argument
229 wgpu::Texture texture; TEST_P() local
295 DoClearTest(EGLImage eglImage, GLuint texture, wgpu::TextureFormat format, GLenum glFormat, GLenum glType, void* data, size_t dataSize) DoClearTest() argument
[all...]
/third_party/vk-gl-cts/framework/common/
H A DtcuTexLookupVerifier.hpp114 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const Vec4& result);
115 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result);
116 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result);
117 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result);
118 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result);
119 bool isLookupResultValid (const Texture3DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result);
120 bool isLookupResultValid (const TextureCubeArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const IVec4& coordBits, const Vec4& coord, const Vec2& lodBounds, const Vec4& result);
136 bool isGatherOffsetsResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const Vec4& result);
137 bool isGatherOffsetsResultValid (const Texture2DView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const IVec4& result);
138 bool isGatherOffsetsResultValid (const Texture2DView& texture, cons
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_uniforms.c39 struct vc4_resource *rsc = vc4_resource(sview->texture); in write_texture_p0()
65 struct pipe_sampler_view *texture = texstate->textures[unit]; in write_texture_p2() local
66 struct vc4_resource *rsc = vc4_resource(texture->texture); in write_texture_p2()
82 struct pipe_sampler_view *texture = texstate->textures[unit]; in write_texture_first_level() local
84 cl_aligned_f(uniforms, texture->u.tex.first_level); in write_texture_first_level()
93 struct pipe_sampler_view *texture = texstate->textures[unit]; in write_texture_msaa_addr() local
94 struct vc4_resource *rsc = vc4_resource(texture->texture); in write_texture_msaa_addr()
114 struct pipe_sampler_view *texture in write_texture_border_color() local
179 struct pipe_sampler_view *texture = texstate->textures[data]; get_texrect_scale() local
[all...]
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3d_uniforms.c40 struct pipe_sampler_view *texture = texstate->textures[data]; in get_texrect_scale() local
44 dim = texture->texture->width0; in get_texrect_scale()
46 dim = texture->texture->height0; in get_texrect_scale()
56 struct pipe_sampler_view *texture = texstate->textures[data]; in get_texture_size() local
59 if (texture->target == PIPE_BUFFER) { in get_texture_size()
60 return texture->u.buf.size / in get_texture_size()
61 util_format_get_blocksize(texture->format); in get_texture_size()
63 return u_minify(texture in get_texture_size()
[all...]

Completed in 19 milliseconds

12345678910>>...47