Home
last modified time | relevance | path

Searched refs:textureIndex (Results 1 – 19 of 19) sorted by relevance

/external/angle/src/tests/perf_tests/
DFramebufferAttachmentPerfTest.cpp120 for (size_t textureIndex = 0; textureIndex < textureCount; textureIndex++) in drawBenchmark() local
122 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + textureIndex, in drawBenchmark()
123 GL_TEXTURE_2D, mTextures[textureIndex], 0); in drawBenchmark()
134 size_t textureIndex = mTextures.size() - (index + 1); in drawBenchmark() local
135 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + textureIndex, in drawBenchmark()
165 for (size_t textureIndex = 0; textureIndex < mTextures.size(); textureIndex++) in initializeBenchmark() local
167 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + textureIndex, in initializeBenchmark()
168 GL_TEXTURE_2D, mTextures[textureIndex], 0); in initializeBenchmark()
200 for (size_t textureIndex = 0; textureIndex < textureCount; textureIndex++) in drawBenchmark() local
202 glBindTexture(GL_TEXTURE_2D, mTextures[textureIndex]); in drawBenchmark()
DVulkanBarriersPerf.cpp71 void createTexture(uint32_t textureIndex, uint32_t sizeIndex, bool compressed);
73 void createFramebuffer(uint32_t fboIndex, uint32_t textureIndex, uint32_t sizeIndex);
183 void VulkanBarriersPerfBenchmark::createTexture(uint32_t textureIndex, in createTexture() argument
192 glBindTexture(GL_TEXTURE_2D, mTextures[textureIndex]); in createTexture()
213 uint32_t textureIndex, in createFramebuffer() argument
216 createTexture(textureIndex, sizeIndex, false); in createFramebuffer()
220 mTextures[textureIndex], 0); in createFramebuffer()
/external/angle/src/libANGLE/
DFramebufferAttachment.cpp62 const ImageIndex &textureIndex, in FramebufferAttachment() argument
67 attach(context, type, binding, textureIndex, resource, kDefaultNumViews, kDefaultBaseViewIndex, in FramebufferAttachment()
113 const ImageIndex &textureIndex, in attach() argument
128 mTarget = Target(binding, textureIndex); in attach()
192 const auto &index = mTarget.textureIndex(); in cubeMapFace()
199 return mTarget.textureIndex().getLevelIndex(); in mipLevel()
206 const gl::ImageIndex &index = mTarget.textureIndex(); in layer()
212 return mTarget.textureIndex().isLayered(); in isLayered()
269 return mResource ? mResource->initState(mTarget.textureIndex()) : InitState::Initialized; in initState()
275 ANGLE_TRY(mResource->initializeContents(context, mTarget.textureIndex())); in initializeContents()
[all …]
DFramebufferAttachment.h61 const ImageIndex &textureIndex,
74 const ImageIndex &textureIndex,
185 const ImageIndex &textureIndex() const { return mTextureIndex; } in textureIndex() function
239 return mTarget.textureIndex(); in getTextureImageIndex()
245 return mResource->getAttachmentSize(mTarget.textureIndex()); in getSize()
251 return mResource->getAttachmentFormat(mTarget.binding(), mTarget.textureIndex()); in getFormat()
263 return mResource->getAttachmentSamples(mTarget.textureIndex()); in getResourceSamples()
272 return mResource->getAttachmentRenderTarget(context, mTarget.binding(), mTarget.textureIndex(), in getRenderTargetImpl()
279 return mResource->isRenderable(context, mTarget.binding(), mTarget.textureIndex()); in isRenderable()
DState.cpp251 for (size_t textureIndex = 0; textureIndex < mTextures.size(); ++textureIndex) in clear() local
253 reset(textureIndex); in clear()
270 ANGLE_INLINE void ActiveTexturesCache::reset(size_t textureIndex) in reset() argument
272 if (mTextures[textureIndex]) in reset()
274 mTextures[textureIndex] = nullptr; in reset()
278 ANGLE_INLINE void ActiveTexturesCache::set(size_t textureIndex, Texture *texture) in set() argument
281 mTextures[textureIndex] = texture; in set()
478 for (int32_t textureIndex = 0; textureIndex < caps.maxCombinedTextureImageUnits; ++textureIndex) in initialize() local
480 mCompleteTextureBindings.emplace_back(context, textureIndex); in initialize()
597 for (size_t textureIndex : textureMask) in unsetActiveTextures() local
[all …]
DFramebuffer.cpp1767 const ImageIndex &textureIndex, in setAttachment() argument
1770 setAttachment(context, type, binding, textureIndex, resource, in setAttachment()
1779 const ImageIndex &textureIndex, in setAttachmentMultisample() argument
1783 setAttachment(context, type, binding, textureIndex, resource, in setAttachmentMultisample()
1791 const ImageIndex &textureIndex, in setAttachment() argument
1802 const InternalFormat *info = resource->getAttachmentFormat(binding, textureIndex).info; in setAttachment()
1812 setAttachmentImpl(context, type, binding, textureIndex, resource, numViews, baseViewIndex, in setAttachment()
1822 context, type, binding, textureIndex, resource, numViews, baseViewIndex, in setAttachment()
1827 mState.mWebGLDepthAttachment.attach(context, type, binding, textureIndex, resource, in setAttachment()
1833 mState.mWebGLStencilAttachment.attach(context, type, binding, textureIndex, resource, in setAttachment()
[all …]
DFramebuffer.h220 const ImageIndex &textureIndex,
225 const ImageIndex &textureIndex,
231 const ImageIndex &textureIndex,
448 const ImageIndex &textureIndex,
462 const ImageIndex &textureIndex,
474 const ImageIndex &textureIndex,
DState.h77 Texture *operator[](size_t textureIndex) const { return mTextures[textureIndex]; }
80 void set(size_t textureIndex, Texture *texture);
81 void reset(size_t textureIndex);
920 void setActiveTextureDirty(size_t textureIndex, Texture *texture);
921 void updateTextureBinding(const Context *context, size_t textureIndex, Texture *texture);
923 size_t textureIndex,
/external/skqp/src/image/
DSkImage_GpuBase.cpp293 for (int textureIndex = 0; textureIndex < numTextures; ++textureIndex) { in MakeTempTextureProxies() local
294 yuvaTexturesCopy[textureIndex] = yuvaTextures[textureIndex]; in MakeTempTextureProxies()
295 GrBackendFormat backendFormat = yuvaTexturesCopy[textureIndex].getBackendFormat(); in MakeTempTextureProxies()
299 yuvaTexturesCopy[textureIndex].fConfig = in MakeTempTextureProxies()
301 if (yuvaTexturesCopy[textureIndex].fConfig == kUnknown_GrPixelConfig) { in MakeTempTextureProxies()
304 SkASSERT(yuvaTexturesCopy[textureIndex].isValid()); in MakeTempTextureProxies()
306 tempTextureProxies[textureIndex] = proxyProvider->wrapBackendTexture( in MakeTempTextureProxies()
307 yuvaTexturesCopy[textureIndex], imageOrigin, kBorrow_GrWrapOwnership, in MakeTempTextureProxies()
309 if (!tempTextureProxies[textureIndex]) { in MakeTempTextureProxies()
314 GrPixelConfig config = yuvaTexturesCopy[textureIndex].fConfig; in MakeTempTextureProxies()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureShadowTests.cpp202 int textureIndex; member
209 : textureIndex(-1) in FilterCase()
215 : textureIndex (tex_) in FilterCase()
322 …const pipeline::TestTexture2D& texture = m_renderer.get2DTexture(m_cases[m_caseNdx].textureIndex in iterate()
347 m_renderer.renderQuad(rendered, curCase.textureIndex, &texCoord[0], sampleParams); in iterate()
407 int textureIndex; member
413 : textureIndex (-1) in FilterCase()
419 : textureIndex (tex_) in FilterCase()
534 const pipeline::TestTextureCube& texture = m_renderer.getCubeTexture(curCase.textureIndex); in iterate()
563 m_renderer.renderQuad(result, curCase.textureIndex, &texCoord[0], sampleParams); in iterate()
[all …]
DvktTextureTestUtil.cpp879 const pipeline::TestTexture2D& TextureRenderer::get2DTexture (int textureIndex) const in get2DTexture()
881 DE_ASSERT(m_textureBindings.size() > (size_t)textureIndex); in get2DTexture()
882 DE_ASSERT(m_textureBindings[textureIndex]->getType() == TextureBinding::TYPE_2D); in get2DTexture()
884 …return dynamic_cast<const pipeline::TestTexture2D&>(m_textureBindings[textureIndex]->getTestTextur… in get2DTexture()
887 const pipeline::TestTextureCube& TextureRenderer::getCubeTexture (int textureIndex) const in getCubeTexture()
889 DE_ASSERT(m_textureBindings.size() > (size_t)textureIndex); in getCubeTexture()
890 DE_ASSERT(m_textureBindings[textureIndex]->getType() == TextureBinding::TYPE_CUBE_MAP); in getCubeTexture()
892 …return dynamic_cast<const pipeline::TestTextureCube&>(m_textureBindings[textureIndex]->getTestText… in getCubeTexture()
895 const pipeline::TestTexture2DArray& TextureRenderer::get2DArrayTexture (int textureIndex) const in get2DArrayTexture()
897 DE_ASSERT(m_textureBindings.size() > (size_t)textureIndex); in get2DArrayTexture()
[all …]
DvktTextureTestUtil.hpp212 const pipeline::TestTexture2D& get2DTexture (int textureIndex) const;
217 const pipeline::TestTextureCube& getCubeTexture (int textureIndex) const;
222 const pipeline::TestTexture2DArray& get2DArrayTexture (int textureIndex) const;
227 const pipeline::TestTexture3D& get3DTexture (int textureIndex) const;
231 TextureBinding* getTextureBinding (int textureIndex) const;
DvktTextureFilteringTests.cpp172 int textureIndex; member
178 : textureIndex(-1) in FilterCase()
183 : textureIndex (tex_) in FilterCase()
300 const pipeline::TestTexture2D& texture = m_renderer.get2DTexture(m_cases[m_caseNdx].textureIndex); in iterate()
326 m_renderer.renderQuad(rendered, curCase.textureIndex, &texCoord[0], refParams); in iterate()
390 int textureIndex; member
395 : textureIndex(-1) in FilterCase()
400 : textureIndex (tex_) in FilterCase()
535 …t pipeline::TestTextureCube& texture = m_renderer.getCubeTexture(m_cases[m_caseNdx].textureIndex); in iterate()
569 m_renderer.renderQuad(rendered, curCase.textureIndex, &texCoord[0], refParams); in iterate()
[all …]
/external/angle/src/libANGLE/renderer/metal/
Dmtl_glslang_mtl_utils.mm379 for (uint32_t textureIndex = 0; textureIndex < samplerBindings.size(); ++textureIndex)
381 const gl::SamplerBinding &samplerBinding = samplerBindings[textureIndex];
382 uint32_t uniformIndex = programState.getUniformIndexFromSamplerIndex(textureIndex);
392 {textureIndex, static_cast<uint32_t>(samplerBinding.boundTextureUnits.size())});
Dmtl_glslang_utils.mm472 for (uint32_t textureIndex = 0; textureIndex < samplerBindings.size(); ++textureIndex)
474 const gl::SamplerBinding &samplerBinding = samplerBindings[textureIndex];
475 uint32_t uniformIndex = programState.getUniformIndexFromSamplerIndex(textureIndex);
479 {textureIndex, static_cast<uint32_t>(samplerBinding.boundTextureUnits.size())});
DProgramMtl.mm1257 for (uint32_t textureIndex = 0; textureIndex < mState.getSamplerBindings().size();
1258 ++textureIndex)
1260 const gl::SamplerBinding &samplerBinding = mState.getSamplerBindings()[textureIndex];
1261 const mtl::SamplerBinding &mslBinding = shaderInfo.actualSamplerBindings[textureIndex];
/external/angle/src/libANGLE/renderer/vulkan/
DProgramExecutableVk.cpp663 for (uint32_t textureIndex = 0; textureIndex < samplerBindings.size(); ++textureIndex) in addTextureDescriptorSetDesc() local
665 const gl::SamplerBinding &samplerBinding = samplerBindings[textureIndex]; in addTextureDescriptorSetDesc()
667 uint32_t uniformIndex = programState.getUniformIndexFromSamplerIndex(textureIndex); in addTextureDescriptorSetDesc()
722 mExternalFormatIndexMap[externalFormat] = textureIndex; in addTextureDescriptorSetDesc()
729 mVkFormatIndexMap[vkFormat] = textureIndex; in addTextureDescriptorSetDesc()
1696 for (uint32_t textureIndex = 0; textureIndex < programState->getSamplerBindings().size(); in updateTexturesDescriptorSet() local
1697 ++textureIndex) in updateTexturesDescriptorSet()
1700 programState->getSamplerBindings()[textureIndex]; in updateTexturesDescriptorSet()
1701 uint32_t uniformIndex = programState->getUniformIndexFromSamplerIndex(textureIndex); in updateTexturesDescriptorSet()
/external/angle/src/tests/gl_tests/
DTextureTest.cpp6626 for (GLint textureIndex = 0; textureIndex < vertexTextureCount; ++textureIndex) in compileProgramWithTextureCounts() local
6628 vertexShaderStr << "uniform sampler2D " << vertexPrefix << textureIndex << ";\n"; in compileProgramWithTextureCounts()
6636 for (GLint textureIndex = 0; textureIndex < vertexActiveTextureCount; ++textureIndex) in compileProgramWithTextureCounts() local
6638 vertexShaderStr << " color += texture2D(" << vertexPrefix << textureIndex in compileProgramWithTextureCounts()
6648 for (GLint textureIndex = 0; textureIndex < fragmentTextureCount; ++textureIndex) in compileProgramWithTextureCounts() local
6650 fragmentShaderStr << "uniform sampler2D " << fragPrefix << textureIndex << ";\n"; in compileProgramWithTextureCounts()
6656 for (GLint textureIndex = 0; textureIndex < fragmentActiveTextureCount; ++textureIndex) in compileProgramWithTextureCounts() local
6658 fragmentShaderStr << " gl_FragColor += texture2D(" << fragPrefix << textureIndex in compileProgramWithTextureCounts()
6914 for (size_t textureIndex = 0; textureIndex < 3; textureIndex++) in testSetUp() local
6916 glBindTexture(GL_TEXTURE_2D, mTextures[textureIndex]); in testSetUp()
/external/skqp/experimental/nima/
DNimaActor.cpp202 if (!vertexCount || fActorImage->textureIndex() < 0) { in updateVertices()