Home
last modified time | relevance | path

Searched refs:attachmentIndex (Results 1 - 25 of 43) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkFramebuffer.cpp144 uint32_t attachmentIndex = subpass.pColorAttachments[attachment.colorAttachment].attachment; in clearAttachment() local
146 if(attachmentIndex != VK_ATTACHMENT_UNUSED) in clearAttachment()
148 ASSERT(attachmentIndex < attachmentCount); in clearAttachment()
149 ImageView *imageView = attachments[attachmentIndex]; in clearAttachment()
164 uint32_t attachmentIndex = subpass.pDepthStencilAttachment->attachment; in clearAttachment() local
166 if(attachmentIndex != VK_ATTACHMENT_UNUSED) in clearAttachment()
168 ASSERT(attachmentIndex < attachmentCount); in clearAttachment()
169 ImageView *imageView = attachments[attachmentIndex]; in clearAttachment()
H A DVkRenderPass.hpp41 VkAttachmentDescription getAttachment(uint32_t attachmentIndex) const in getAttachment()
43 return attachments[attachmentIndex]; in getAttachment()
91 uint32_t getAttachmentViewMask(uint32_t attachmentIndex) const in getAttachmentViewMask()
93 return attachmentViewMasks[attachmentIndex]; in getAttachmentViewMask()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DFramebufferD3D.cpp329 for (size_t attachmentIndex = 0; attachmentIndex < colorAttachments.size(); ++attachmentIndex) in getColorAttachmentsForRender()
331 GLenum drawBufferState = drawBufferStates[attachmentIndex]; in getColorAttachmentsForRender()
332 const gl::FramebufferAttachment &colorAttachment = colorAttachments[attachmentIndex]; in getColorAttachmentsForRender()
335 activeProgramOutputs[attachmentIndex]) in getColorAttachmentsForRender()
338 drawBufferState == (GL_COLOR_ATTACHMENT0_EXT + attachmentIndex)); in getColorAttachmentsForRender()
340 mColorAttachmentsForRenderMask.set(attachmentIndex); in getColorAttachmentsForRender()
345 mColorAttachmentsForRenderMask.set(attachmentIndex); in getColorAttachmentsForRender()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
H A DvktRenderPassTests.cpp3594 const deUint32 attachmentIndex = getAttachmentNdx(colorAttachments, attachmentNdx);
3596 if (!attachmentUsed[attachmentIndex] && colorAttachments[attachmentNdx].getAttachment() != VK_ATTACHMENT_UNUSED)
3598 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3599 vector<PixelValue>& reference = referenceAttachments[attachmentIndex];
3606 clearReferenceValues(reference, targetSize, renderPos, renderSize, BVec4(true), clearValueToPixelValue(*renderPassClearValues[attachmentIndex], format, depthValues));
3610 attachmentUsed[attachmentIndex] = true;
3617 const deUint32 attachmentIndex = subpass.getDepthStencilAttachment().getAttachment();
3620 if (!attachmentUsed[attachmentIndex])
3622 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3623 vector<PixelValue>& reference = referenceAttachments[attachmentIndex];
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
H A DvktRenderPassTests.cpp3580 const deUint32 attachmentIndex = getAttachmentNdx(colorAttachments, attachmentNdx);
3582 if (!attachmentUsed[attachmentIndex] && colorAttachments[attachmentNdx].getAttachment() != VK_ATTACHMENT_UNUSED)
3584 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3585 vector<PixelValue>& reference = referenceAttachments[attachmentIndex];
3592 clearReferenceValues(reference, targetSize, renderPos, renderSize, BVec4(true), clearValueToPixelValue(*renderPassClearValues[attachmentIndex], format, depthValues));
3596 attachmentUsed[attachmentIndex] = true;
3603 const deUint32 attachmentIndex = subpass.getDepthStencilAttachment().getAttachment();
3606 if (!attachmentUsed[attachmentIndex])
3608 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3609 vector<PixelValue>& reference = referenceAttachments[attachmentIndex];
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DRenderPassBuilderD3D12.cpp112 void RenderPassBuilder::SetRenderTargetView(ColorAttachmentIndex attachmentIndex, in SetRenderTargetView() argument
115 mRenderTargetViews[attachmentIndex] = baseDescriptor; in SetRenderTargetView()
116 mRenderPassRenderTargetDescriptors[attachmentIndex].cpuDescriptor = baseDescriptor; in SetRenderTargetView()
H A DRenderPassBuilderD3D12.h77 void SetRenderTargetView(ColorAttachmentIndex attachmentIndex,
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
H A DReplaceForShaderFramebufferFetch.cpp438 uint32_t attachmentIndex = inputAttachmentIndex + index; in loadInputAttachmentDataImpl() local
444 assignSubpassLoad(left, new TIntermSymbol(mInputAttachmentVarList[attachmentIndex]), in loadInputAttachmentDataImpl()
568 unsigned int attachmentIndex = inputAttachmentIndex + arrayIndex; in declareSubpassInputVariables() local
570 if (!declareSubpassInputVariableImpl(declaredVar.second, attachmentIndex)) in declareSubpassInputVariables()
575 addInputAttachmentUniform(attachmentIndex); in declareSubpassInputVariables()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DDrawBuffersTest.cpp917 for (uint32_t attachmentIndex = 0; attachmentIndex < 4; ++attachmentIndex) in TEST_P()
920 snprintf(uniformName, sizeof uniformName, "value%u", attachmentIndex); in TEST_P()
921 uniforms[attachmentIndex] = glGetUniformLocation(program, uniformName); in TEST_P()
922 ASSERT_NE(uniforms[attachmentIndex], -1); in TEST_P()
H A DWebGLCompatibilityTest.cpp4742 for (int attachmentIndex = 0; attachmentIndex < 4; ++attachmentIndex) in TEST_P()
4744 if (mask & (1 << attachmentIndex)) in TEST_P()
4747 renderbuffers[attachmentIndex]); in TEST_P()
4748 EXPECT_PIXEL_COLOR_EQ(0, 0, color) << "attachment " << attachmentIndex; in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineColorWriteEnableTests.cpp955 for (deUint32 attachmentIndex = 0u; attachmentIndex < kNumColorAttachments; ++attachmentIndex, ++nextAttachmentImage) in iterate()
970 bool match = tcu::boolAll(tcu::lessThan(tcu::absDiff(colorPixel, m_testConfig.expectedColor[attachmentIndex]), kColorThreshold)); in iterate()
979 desc << "Result color image and error mask for attachment #" << attachmentIndex; in iterate() local
1220 bool verifyAttachment (const deUint32 attachmentIndex,
1611 bool ColorWriteEnable2Instance::verifyAttachment (const deUint32 attachmentIndex, in verifyAttachment() argument
1619 color[attachmentIndex % 4] = background[attachmentIndex % 4]; in verifyAttachment()
1622 const Vec4 source (powf(0.5f, static_cast<float>(attachmentCount - attachmentIndex))); in verifyAttachment()
[all...]
H A DvktPipelineMultisampleSampleLocationsExtTests.cpp781 index, // uint32_t attachmentIndex; in addAttachment()
790 void addSubpassColorAttachment (const deUint32 attachmentIndex, const VkImageLayout subpassLayout) in addSubpassColorAttachment() argument
793 makeAttachmentReference(attachmentIndex, subpassLayout)); in addSubpassColorAttachment()
816 void addSubpassDepthStencilAttachment (const deUint32 attachmentIndex, const VkImageLayout subpassLayout, const VkSampleLocationsInfoEXT* pSampleLocations = DE_NULL) in addSubpassDepthStencilAttachment() argument
819 makeAttachmentReference(attachmentIndex, subpassLayout)); in addSubpassDepthStencilAttachment()
832 void addSubpassInputAttachment (const deUint32 attachmentIndex, const VkImageLayout subpassLayout) in addSubpassInputAttachment() argument
835 makeAttachmentReference(attachmentIndex, subpassLayout)); in addSubpassInputAttachment()
838 void addSubpassPreserveAttachment (const deUint32 attachmentIndex) in addSubpassPreserveAttachment() argument
840 m_subpasses.back().preserveAttachmentReferences.push_back(attachmentIndex); in addSubpassPreserveAttachment()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineColorWriteEnableTests.cpp947 for (deUint32 attachmentIndex = 0u; attachmentIndex < kNumColorAttachments; ++attachmentIndex, ++nextAttachmentImage) in iterate()
962 bool match = tcu::boolAll(tcu::lessThan(tcu::absDiff(colorPixel, m_testConfig.expectedColor[attachmentIndex]), kColorThreshold)); in iterate()
971 desc << "Result color image and error mask for attachment #" << attachmentIndex; in iterate() local
1213 bool verifyAttachment (const deUint32 attachmentIndex,
1600 bool ColorWriteEnable2Instance::verifyAttachment (const deUint32 attachmentIndex, in verifyAttachment() argument
1608 color[attachmentIndex % 4] = background[attachmentIndex % 4]; in verifyAttachment()
1611 const Vec4 source (powf(0.5f, static_cast<float>(attachmentCount - attachmentIndex))); in verifyAttachment()
[all...]
H A DvktPipelineMultisampleSampleLocationsExtTests.cpp778 index, // uint32_t attachmentIndex; in addAttachment()
787 void addSubpassColorAttachment (const deUint32 attachmentIndex, const VkImageLayout subpassLayout) in addSubpassColorAttachment() argument
790 makeAttachmentReference(attachmentIndex, subpassLayout)); in addSubpassColorAttachment()
813 void addSubpassDepthStencilAttachment (const deUint32 attachmentIndex, const VkImageLayout subpassLayout, const VkSampleLocationsInfoEXT* pSampleLocations = DE_NULL) in addSubpassDepthStencilAttachment() argument
816 makeAttachmentReference(attachmentIndex, subpassLayout)); in addSubpassDepthStencilAttachment()
829 void addSubpassInputAttachment (const deUint32 attachmentIndex, const VkImageLayout subpassLayout) in addSubpassInputAttachment() argument
832 makeAttachmentReference(attachmentIndex, subpassLayout)); in addSubpassInputAttachment()
835 void addSubpassPreserveAttachment (const deUint32 attachmentIndex) in addSubpassPreserveAttachment() argument
837 m_subpasses.back().preserveAttachmentReferences.push_back(attachmentIndex); in addSubpassPreserveAttachment()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DUtilsVk.cpp165 uint32_t GetImageClearFlags(const angle::Format &format, uint32_t attachmentIndex, bool clearDepth) in GetImageClearFlags() argument
176 uint32_t flags = ImageClear_frag::kAttachment0 + attachmentIndex * kAttachmentFlagStep; in GetImageClearFlags()
319 for (uint32_t attachmentIndex = 0; attachmentIndex < colorAttachmentCount; ++attachmentIndex) in GetUnresolveFlags()
321 const angle::Format &format = colorSrc[attachmentIndex]->getIntendedFormat(); in GetUnresolveFlags()
333 (*attachmentTypesOut)[attachmentIndex] = type; in GetUnresolveFlags()
337 flags |= type << (2 * attachmentIndex); in GetUnresolveFlags()
662 uint32_t attachmentIndex, in InsertInputDecorations()
670 {spirv::LiteralInteger(attachmentIndex)}); in InsertInputDecorations()
661 InsertInputDecorations(spirv::IdRef id, uint32_t attachmentIndex, uint32_t binding, angle::spirv::Blob *blobOut) InsertInputDecorations() argument
[all...]
H A Dvk_cache_utils.cpp2308 for (size_t attachmentIndex : attachmentMask)
2311 mInputAssemblyAndColorBlendStateInfo.attachments[attachmentIndex];
2313 PackGLBlendOp(blendStateExt.getEquationColorIndexed(attachmentIndex));
2315 PackGLBlendOp(blendStateExt.getEquationAlphaIndexed(attachmentIndex));
2317 attachments, attachmentIndex, kSizeBits));
2326 for (size_t attachmentIndex : attachmentMask)
2329 mInputAssemblyAndColorBlendStateInfo.attachments[attachmentIndex];
2331 PackGLBlendFactor(blendStateExt.getSrcColorIndexed(attachmentIndex));
2333 PackGLBlendFactor(blendStateExt.getDstColorIndexed(attachmentIndex));
2335 PackGLBlendFactor(blendStateExt.getSrcAlphaIndexed(attachmentIndex));
[all...]
H A DUtilsVk.h527 uint32_t attachmentIndex);
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
H A DTracePerfTest.cpp1725 for (GLsizei attachmentIndex = 0; attachmentIndex < numAttachments; ++attachmentIndex) in ConvertDefaultFramebufferEnums()
1727 GLenum converted = ConvertDefaultFramebufferEnum(attachments[attachmentIndex]); in ConvertDefaultFramebufferEnums()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shader_object/
H A DvktShaderObjectRenderingTests.cpp311 void generateExpectedImage (const tcu::PixelBufferAccess& outputImage, const deUint32 width, const deUint32 height, deUint32 attachmentIndex);
503 void ShaderObjectRenderingInstance::generateExpectedImage (const tcu::PixelBufferAccess& outputImage, const deUint32 width, const deUint32 height, deUint32 attachmentIndex) in generateExpectedImage() argument
518 if ((m_params.extraAttachments == BEFORE && attachmentIndex < m_params.extraAttachmentCount) || (m_params.extraAttachments == BETWEEN && attachmentIndex > m_params.colorAttachmentCount / 2u && attachmentIndex <= m_params.colorAttachmentCount / 2u + m_params.extraAttachmentCount) || (m_params.extraAttachments == AFTER && attachmentIndex >= m_params.colorAttachmentCount)) in generateExpectedImage()
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
H A Dframe_capture_utils.cpp352 for (size_t attachmentIndex = 0; attachmentIndex < colorAttachments.size(); in SerializeFramebufferState()
353 ++attachmentIndex) in SerializeFramebufferState()
355 const gl::FramebufferAttachment &colorAttachment = colorAttachments[attachmentIndex]; in SerializeFramebufferState()
359 static_cast<int>(attachmentIndex)); in SerializeFramebufferState()
/third_party/mesa3d/src/vulkan/runtime/
H A Dvk_render_pass.c1073 .attachmentIndex = att_sl_in->attachmentIndex, in clone_rp_sample_locations()
1782 * array for which the attachmentIndex member equals the attachment in begin_subpass()
2307 assert(att_sl->attachmentIndex < pass->attachment_count); in vk_common_CmdBeginRenderPass2()
2309 &cmd_buffer->attachments[att_sl->attachmentIndex]; in vk_common_CmdBeginRenderPass2()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
H A DvktShaderTileImageTests.cpp1917 for (deUint32 attachmentIndex = 0; attachmentIndex < colorAttachmentCount; attachmentIndex++) in rendering()
1920 &*m_descriptorSets[attachmentIndex], 0u, DE_NULL); in rendering()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/
H A DvktBindingDescriptorSetRandomTests.cpp1898 deUint32 attachmentIndex = 0; in iterate() local
2004 VkImage img = *inputAttachments[attachmentIndex]; in iterate()
2014 ++attachmentIndex; in iterate()
2155 attachmentIndex = 0; in iterate()
2236 imageInfoVec[vecIndex] = makeDescriptorImageInfo(DE_NULL, inputAttachmentViews[attachmentIndex].get(), VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); in iterate()
2237 ++attachmentIndex; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/binding_model/
H A DvktBindingDescriptorSetRandomTests.cpp1898 deUint32 attachmentIndex = 0; in iterate() local
2004 VkImage img = *inputAttachments[attachmentIndex]; in iterate()
2014 ++attachmentIndex; in iterate()
2155 attachmentIndex = 0; in iterate()
2236 imageInfoVec[vecIndex] = makeDescriptorImageInfo(DE_NULL, inputAttachmentViews[attachmentIndex].get(), VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); in iterate()
2237 ++attachmentIndex; in iterate()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
H A DSpirvShader.cpp55 auto attachmentIndex = subpass.pInputAttachments[i].attachment; in robustBufferAccess() local
56 inputAttachmentFormats.push_back(attachmentIndex != VK_ATTACHMENT_UNUSED in robustBufferAccess()
57 ? renderPass->getAttachment(attachmentIndex).format in robustBufferAccess()

Completed in 73 milliseconds

12