/third_party/vk-gl-cts/external/amber/src/src/amberscript/ |
H A D | parser_buffer_test.cc | 70 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F() 71 EXPECT_EQ(Format::Layout::kStd430, buffer->GetFormat()->GetLayout()); in TEST_F() 103 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F() 104 EXPECT_EQ(Format::Layout::kStd140, buffer->GetFormat()->GetLayout()); in TEST_F() 136 EXPECT_TRUE(buffer->GetFormat()->IsFloat32()); in TEST_F() 137 EXPECT_EQ(Format::Layout::kStd430, buffer->GetFormat()->GetLayout()); in TEST_F() 169 EXPECT_TRUE(buffer->GetFormat()->IsFloat32()); in TEST_F() 170 EXPECT_EQ(Format::Layout::kStd140, buffer->GetFormat()->GetLayout()); in TEST_F() 201 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F() 202 EXPECT_EQ(Format::Layout::kStd430, buffer->GetFormat() in TEST_F() [all...] |
H A D | parser_image_test.cc | 215 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F() 239 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F() 304 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F() 334 EXPECT_TRUE(buffer->GetFormat()->IsFloat32()); in TEST_F()
|
H A D | parser_shader_test.cc | 38 EXPECT_EQ(kShaderFormatSpirvAsm, shader->GetFormat()); in TEST_F() 149 EXPECT_EQ(kShaderFormatGlsl, shader->GetFormat()); in TEST_F() 366 EXPECT_EQ(kShaderFormatGlsl, shader->GetFormat()); in TEST_P() 412 EXPECT_EQ(test_data.format, shader->GetFormat()); in TEST_P()
|
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
H A D | parser_test.cc | 137 bufs[0]->GetFormat()->GetFormatType()); in TEST_F() 152 bufs[1]->GetFormat()->GetFormatType()); in TEST_F() 235 bufs[0]->GetFormat()->GetFormatType()); in TEST_F() 238 bufs[1]->GetFormat()->GetFormatType()); in TEST_F() 257 EXPECT_TRUE(bufs[1]->GetFormat()->IsUint32()); in TEST_F() 342 EXPECT_EQ(FormatType::kR32G32_SFLOAT, bufs[1]->GetFormat()->GetFormatType()); in TEST_F() 347 bufs[2]->GetFormat()->GetFormatType()); in TEST_F() 371 EXPECT_EQ(FormatType::kR32G32_SFLOAT, bufs[1]->GetFormat()->GetFormatType()); in TEST_F() 373 auto& segs1 = bufs[1]->GetFormat()->GetSegments(); in TEST_F() 380 EXPECT_EQ(FormatType::kR32G32B32_SINT, bufs[2]->GetFormat() in TEST_F() [all...] |
H A D | command_parser.cc | 599 if (buf->FormatIsDefault() || !buf->GetFormat()) { in ProcessSSBO() 603 } else if (!buf->GetFormat()->Equal(fmt.get())) { in ProcessSSBO() 616 if ((token->AsUint32() % buf->GetFormat()->SizeInBytes()) != 0) { in ProcessSSBO() 619 std::to_string(buf->GetFormat()->SizeInBytes())); in ProcessSSBO() 625 Result r = ParseValues("ssbo", buf->GetFormat(), &values); in ProcessSSBO() 646 if (!buf->GetFormat()) { in ProcessSSBO() 762 if (buf->FormatIsDefault() || !buf->GetFormat()) { in ProcessUniform() 766 } else if (!buf->GetFormat()->Equal(fmt.get())) { in ProcessUniform() 780 auto buf_size = static_cast<int32_t>(buf->GetFormat()->SizeInBytes()); in ProcessUniform() 787 Result r = ParseValues("uniform", buf->GetFormat(), in ProcessUniform() [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | CommandValidation.cpp | 276 SelectFormatAspects(texture->GetFormat(), textureCopy.aspect) == Aspect::None, in ValidateImageCopyTexture() 278 texture->GetFormat().format, textureCopy.aspect); in ValidateImageCopyTexture() 280 if (texture->GetSampleCount() > 1 || texture->GetFormat().HasDepthOrStencil()) { in ValidateImageCopyTexture() 291 texture->GetFormat().format, texture->GetSampleCount()); in ValidateImageCopyTexture() 327 const Format& format = textureCopy.texture->GetFormat(); in ValidateTextureCopyRange() 358 const Format& format = view.texture->GetFormat(); in SingleAspectUsedByImageCopyTexture() 404 const Format& format = src.texture->GetFormat(); in ValidateTextureToTextureCopyCommonRestrictions() 433 DAWN_INVALID_IF(src.texture->GetFormat().format != dst.texture->GetFormat().format, in ValidateTextureToTextureCopyRestrictions() 435 src.texture, src.texture->GetFormat() in ValidateTextureToTextureCopyRestrictions() [all...] |
H A D | CommandEncoder.cpp | 89 switch (src.texture->GetFormat().format) { in ValidateTextureDepthStencilToBufferCopyRestrictions() 96 src.texture, src.texture->GetFormat().format); in ValidateTextureDepthStencilToBufferCopyRestrictions() 204 wgpu::TextureFormat resolveTargetFormat = resolveTarget->GetFormat().format; in ValidateResolveTarget() 206 resolveTargetFormat != attachment->GetFormat().format, in ValidateResolveTarget() 209 resolveTarget, resolveTargetFormat, attachment, attachment->GetFormat().format); in ValidateResolveTarget() 226 !attachment->GetFormat().isRenderable, in ValidateRenderPassColorAttachment() 228 attachment, attachment->GetFormat().format); in ValidateRenderPassColorAttachment() 265 const Format& format = attachment->GetFormat(); in ValidateRenderPassDepthStencilAttachment() 718 destination->texture->GetFormat().GetAspectInfo(destination->aspect).block; in APICopyBufferToTexture() 722 destination->texture->GetFormat() in APICopyBufferToTexture() [all...] |
H A D | AttachmentState.cpp | 59 mColorFormats[i] = attachment->GetFormat().format; in AttachmentStateBlueprint() 68 mDepthStencilFormat = attachment->GetFormat().format; in AttachmentStateBlueprint()
|
H A D | Texture.h | 57 const Format& GetFormat() const; 132 const Format& GetFormat() const;
|
H A D | Texture.cpp | 36 if (texture->GetFormat().format != descriptor->format) { in ValidateTextureViewFormatCompatibility() 38 texture->GetFormat().GetAspectInfo(descriptor->aspect).format == in ValidateTextureViewFormatCompatibility() 349 SelectFormatAspects(texture->GetFormat(), descriptor->aspect) == Aspect::None, in ValidateTextureViewDescriptor() 351 texture->GetFormat().format, descriptor->aspect); in ValidateTextureViewDescriptor() 407 desc.format = texture->GetFormat().format; in GetTextureViewDescriptorWithDefaults() 504 const Format& TextureBase::GetFormat() const { in GetFormat() function in dawn_native::TextureBase 742 const Format& TextureViewBase::GetFormat() const { in GetFormat() function in dawn_native::TextureViewBase
|
H A D | CopyTextureForBrowserHelper.cpp | 275 DAWN_TRY(ValidateCopyTextureFormatConversion(source->texture->GetFormat().format, in ValidateCopyTextureForBrowser() 276 destination->texture->GetFormat().format)); in ValidateCopyTextureForBrowser() 299 device, destination->texture->GetFormat().format)); in DoCopyTextureForBrowser()
|
H A D | SwapChain.cpp | 108 desc.format = swapChain->GetFormat(); in GetSwapChainBaseTextureDescriptor() 330 ASSERT(view->GetTexture()->GetFormat().format == mFormat); in APIGetCurrentTextureView() 365 wgpu::TextureFormat NewSwapChainBase::GetFormat() const { in GetFormat() function in dawn_native::NewSwapChainBase
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
H A D | TextureD3D12.cpp | 510 DAWN_INVALID_IF(dawnTexture->GetFormat().IsMultiPlanar(), in Create() 536 !isInitialized && dawnTexture->GetFormat().IsMultiPlanar(), in CreateExternalImage() 538 dawnTexture->GetFormat().format); in CreateExternalImage() 599 GetFormat().HasDepthOrStencil() && in InitializeAsInternalTexture() 603 ? D3D12TypelessTextureFormat(GetFormat().format) in InitializeAsInternalTexture() 604 : D3D12TextureFormat(GetFormat().format); in InitializeAsInternalTexture() 612 D3D12ResourceFlags(GetInternalUsage(), GetFormat(), IsMultisampledTexture()); in InitializeAsInternalTexture() 651 GetFormat().aspects, in Texture() 691 return D3D12TextureFormat(GetFormat().format); in GetD3D12Format() 699 ASSERT(GetFormat() in GetD3D12CopyableSubresourceFormat() [all...] |
H A D | SwapChainD3D12.cpp | 159 mConfig.format = D3D12TextureFormat(GetFormat()); in Initialize() 205 GetFormat() == previousSwapChain->GetFormat() && in Initialize()
|
H A D | UtilsD3D12.cpp | 189 const TexelBlockInfo& blockInfo = texture->GetFormat().GetAspectInfo(aspect).block; in CopyBufferTo2DTextureWithCopySplit() 234 const TexelBlockInfo& blockInfo = texture->GetFormat().GetAspectInfo(aspect).block; in CopyBufferTo3DTexture() 305 texture->GetFormat().GetAspectInfo(textureCopy.aspect).block; in Copy2DTextureToBufferWithCopySplit() 349 texture->GetFormat().GetAspectInfo(textureCopy.aspect).block; in Copy3DTextureToBuffer()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | TextureVk.cpp | 174 barrier.srcAccessMask = VulkanAccessFlags(lastUsage, texture->GetFormat()); in BuildMemoryBarrier() 175 barrier.dstAccessMask = VulkanAccessFlags(usage, texture->GetFormat()); in BuildMemoryBarrier() 512 if (texture->GetFormat().HasDepthOrStencil() && texture->GetFormat().isRenderable) { in VulkanImageLayout() 532 if (texture->GetFormat().HasDepthOrStencil()) { in VulkanImageLayout() 645 createInfo.format = VulkanImageFormat(device, GetFormat().format); in InitializeAsInternalTexture() 647 createInfo.usage = VulkanImageUsage(GetInternalUsage(), GetFormat()) | extraUsages; in InitializeAsInternalTexture() 694 VkFormat format = VulkanImageFormat(ToBackend(GetDevice()), GetFormat().format); in InitializeFromExternal() 695 VkImageUsageFlags usage = VulkanImageUsage(GetInternalUsage(), GetFormat()); in InitializeFromExternal() 778 barrier.subresourceRange.aspectMask = VulkanAspectMask(GetFormat() in ExportExternalTexture() [all...] |
H A D | UtilsVulkan.cpp | 94 ASSERT(texture->GetFormat().isCompressed); in ComputeTextureCopyExtent() 98 ASSERT(texture->GetFormat().isCompressed); in ComputeTextureCopyExtent() 125 texture->GetFormat().GetAspectInfo(textureCopy.aspect).block; in ComputeBufferImageCopyRegion()
|
/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
H A D | push_constant.cc | 125 if (!buffer_->GetFormat()) { in UpdateMemoryWithInput() 126 buffer_->SetFormat(input.buffer->GetFormat()); in UpdateMemoryWithInput() 127 } else if (!buffer_->GetFormat()->Equal(input.buffer->GetFormat())) { in UpdateMemoryWithInput()
|
H A D | index_buffer.cc | 39 if (buffer->GetFormat()->IsUint32()) in SendIndexData() 41 else if (buffer->GetFormat()->IsUint16()) in SendIndexData() 43 else if (buffer->GetFormat()->IsUint8()) in SendIndexData()
|
H A D | frame_buffer.cc | 71 device_, *info->buffer->GetFormat(), VK_IMAGE_ASPECT_COLOR_BIT, in Initialize() 85 depth_stencil_attachment_.buffer->GetFormat()->IsFormatKnown()) { in Initialize() 87 if (depth_stencil_attachment_.buffer->GetFormat()->HasDepthComponent()) in Initialize() 89 if (depth_stencil_attachment_.buffer->GetFormat()->HasStencilComponent()) in Initialize() 98 device_, *depth_stencil_attachment_.buffer->GetFormat(), aspect, in Initialize() 113 device_, *info->buffer->GetFormat(), VK_IMAGE_ASPECT_COLOR_BIT, in Initialize()
|
H A D | graphics_pipeline.cc | 427 device_->GetVkFormat(*info->buffer->GetFormat()); in CreateRenderPass() 444 depth_stencil_buffer_.buffer->GetFormat()->IsFormatKnown()) { in CreateRenderPass() 447 device_->GetVkFormat(*depth_stencil_buffer_.buffer->GetFormat()); in CreateRenderPass() 462 device_->GetVkFormat(*info->buffer->GetFormat()); in CreateRenderPass() 700 depth_stencil_buffer_.buffer->GetFormat()->IsFormatKnown()) { in CreateVkGraphicsPipeline() 794 !depth_stencil_buffer_.buffer->GetFormat()->IsFormatKnown()) { in SetClearStencil() 806 !depth_stencil_buffer_.buffer->GetFormat()->IsFormatKnown()) { in SetClearDepth() 843 depth_stencil_buffer_.buffer->GetFormat()->IsFormatKnown()) { in Clear() 848 if (depth_stencil_buffer_.buffer->GetFormat()->HasStencilComponent()) in Clear()
|
H A D | engine_vulkan.cc | 149 auto fmt = colour_info.buffer->GetFormat(); in CreatePipeline() 157 auto fmt = depth_stencil_info.buffer->GetFormat(); in CreatePipeline() 208 auto fmt = vtex_info.buffer->GetFormat(); in CreatePipeline() 512 vertex_buffer->SetData(0, buf.get(), InputRate::kVertex, buf->GetFormat(), 0, in DoDrawRect() 513 buf->GetFormat()->SizeInBytes()); in DoDrawRect() 600 vertex_buffer->SetData(0, buf.get(), InputRate::kVertex, buf->GetFormat(), 0, in DoDrawGrid() 601 buf->GetFormat()->SizeInBytes()); in DoDrawGrid()
|
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | shader_compiler.cc | 76 if (shader->GetFormat() == kShaderFormatOpenCLC) { in Compile() 122 if (shader->GetFormat() == kShaderFormatSpirvHex) { in Compile() 128 } else if (shader->GetFormat() == kShaderFormatGlsl) { in Compile() 135 } else if (shader->GetFormat() == kShaderFormatHlsl) { in Compile() 142 } else if (shader->GetFormat() == kShaderFormatSpirvAsm) { in Compile() 150 } else if (shader->GetFormat() == kShaderFormatOpenCLC) { in Compile()
|
H A D | script.cc | 36 ShaderInfo{shader->GetFormat(), shader->GetType(), in GetShaderInfo() 46 ret.emplace_back(ShaderInfo{shader->GetFormat(), in GetShaderInfo()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
H A D | TextureGL.cpp | 92 if (texture->GetFormat().format != textureViewDescriptor->format) { in RequiresCreatingNewTextureView() 210 return ToBackend(GetDevice())->GetGLFormat(GetFormat()); in GetGLFormat() 216 if (GetFormat().isCompressed) { in ClearTexture() 226 if (GetFormat().isRenderable) { in ClearTexture() 234 gl.StencilMask(GetStencilMaskFromStencilFormat(GetFormat().format)); in ClearTexture() 339 const TexelBlockInfo& blockInfo = GetFormat().GetAspectInfo(Aspect::Color).block; in ClearTexture() 349 GetFormat().GetAspectInfo(Aspect::Color).baseType; in ClearTexture() 451 const TexelBlockInfo& blockInfo = GetFormat().GetAspectInfo(Aspect::Color).block; in ClearTexture() 553 const GLFormat& glFormat = ToBackend(GetDevice())->GetGLFormat(GetFormat()); in TextureView()
|