Home
last modified time | relevance | path

Searched refs:TextureBase (Results 1 – 25 of 61) sorted by relevance

123

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp34 MaybeError ValidateTextureViewFormatCompatibility(const TextureBase* texture, in ValidateTextureViewFormatCompatibility()
135 const TextureBase* texture, in ValidateTextureViewDimensionCompatibility()
333 const TextureBase* texture, in ValidateTextureViewDescriptor()
378 const TextureBase* texture, in GetTextureViewDescriptorWithDefaults()
451 TextureBase::TextureBase(DeviceBase* device, in TextureBase() function in dawn_native::TextureBase
477 TextureBase::TextureBase(DeviceBase* device, TextureState state) in TextureBase() function in dawn_native::TextureBase
482 TextureBase::TextureBase(DeviceBase* device, ObjectBase::ErrorTag tag) in TextureBase() function in dawn_native::TextureBase
486 void TextureBase::DestroyImpl() { in DestroyImpl()
491 TextureBase* TextureBase::MakeError(DeviceBase* device) { in MakeError()
492 return new TextureBase(device, ObjectBase::kError); in MakeError()
[all …]
DTexture.h34 const TextureBase* texture,
37 const TextureBase* texture,
46 class TextureBase : public ApiObjectBase {
50 TextureBase(DeviceBase* device, const TextureDescriptor* descriptor, TextureState state);
52 static TextureBase* MakeError(DeviceBase* device);
100 TextureBase(DeviceBase* device, TextureState state);
104 TextureBase(DeviceBase* device, ObjectBase::ErrorTag tag);
122 TextureViewBase(TextureBase* texture, const TextureViewDescriptor* descriptor);
128 const TextureBase* GetTexture() const;
129 TextureBase* GetTexture();
[all …]
DPassResourceUsage.h33 class TextureBase; variable
45 std::vector<TextureBase*> textures;
68 std::set<TextureBase*> referencedTextures;
94 std::set<TextureBase*> topLevelTextures;
DPassResourceUsageTracker.h30 class TextureBase; variable
39 void AddRenderBundleTextureUsage(TextureBase* texture,
50 std::map<TextureBase*, TextureSubresourceUsage> mTextureUsages;
DCommandValidation.h76 MaybeError ValidateCanUseAs(const TextureBase* texture, wgpu::TextureUsage usage);
78 MaybeError ValidateInternalCanUseAs(const TextureBase* texture, wgpu::TextureUsage usage);
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DTextureGL.cpp90 bool RequiresCreatingNewTextureView(const TextureBase* texture, in RequiresCreatingNewTextureView()
178 ClearTexture(GetAllSubresources(), TextureBase::ClearValue::NonZero)); in Texture()
186 : TextureBase(device, descriptor, state), mHandle(handle) { in Texture()
194 TextureBase::DestroyImpl(); in DestroyImpl()
214 TextureBase::ClearValue clearValue) { in ClearTexture()
223 uint8_t clearColor = (clearValue == TextureBase::ClearValue::Zero) ? 0 : 1; in ClearTexture()
224 float fClearColor = (clearValue == TextureBase::ClearValue::Zero) ? 0.f : 1.f; in ClearTexture()
271 if (clearValue == TextureBase::ClearValue::Zero && in ClearTexture()
294 if (clearValue == TextureBase::ClearValue::Zero && in ClearTexture()
330 clearColorData.fill((clearValue == TextureBase::ClearValue::Zero) ? 0u : 1u); in ClearTexture()
[all …]
DTextureGL.h27 class Texture final : public TextureBase {
45 MaybeError ClearTexture(const SubresourceRange& range, TextureBase::ClearValue clearValue);
53 TextureView(TextureBase* texture, const TextureViewDescriptor* descriptor);
DDeviceGL.h56 TextureBase* CreateTextureWrappingEGLImage(const ExternalImageDescriptor* descriptor,
109 ResultOrError<Ref<TextureBase>> CreateTextureImpl(
112 TextureBase* texture,
DSwapChainGL.cpp34 TextureBase* SwapChain::GetNextTextureImpl(const TextureDescriptor* descriptor) { in GetNextTextureImpl()
44 TextureBase::TextureState::OwnedExternal); in GetNextTextureImpl()
DDeviceGL.cpp167 ResultOrError<Ref<TextureBase>> Device::CreateTextureImpl(const TextureDescriptor* descriptor) { in CreateTextureImpl()
171 TextureBase* texture, in CreateTextureViewImpl()
204 TextureBase* Device::CreateTextureWrappingEGLImage(const ExternalImageDescriptor* descriptor, in CreateTextureWrappingEGLImage()
237 return new Texture(this, textureDescriptor, tex, TextureBase::TextureState::OwnedInternal); in CreateTextureWrappingEGLImage()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/mocks/
DTextureMock.h25 class TextureMock : public TextureBase {
27 TextureMock(DeviceBase* device, TextureBase::TextureState state) in TextureMock()
28 : TextureBase(device, state) { in TextureMock()
30 this->TextureBase::DestroyImpl(); in TextureMock()
40 TextureViewMock(TextureBase* texture) : TextureViewBase(texture) { in TextureViewMock()
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DTextureMTL.h37 class Texture final : public TextureBase {
56 using TextureBase::TextureBase;
73 TextureBase::ClearValue clearValue);
81 static ResultOrError<Ref<TextureView>> Create(TextureBase* texture,
DTextureMTL.mm86 bool RequiresCreatingNewTextureView(const TextureBase* texture,
466 TextureBase::ClearValue::NonZero));
502 TextureBase::DestroyImpl();
512 TextureBase::ClearValue clearValue) {
515 const uint8_t clearColor = (clearValue == TextureBase::ClearValue::Zero) ? 0 : 1;
516 const double dClearColor = (clearValue == TextureBase::ClearValue::Zero) ? 0.0 : 1.0;
530 if (clearValue == TextureBase::ClearValue::Zero &&
546 if (clearValue == TextureBase::ClearValue::Zero &&
595 if (clearValue == TextureBase::ClearValue::Zero &&
678 if (clearValue == TextureBase::ClearValue::Zero &&
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureD3D12.h39 class Texture final : public TextureBase {
93 using TextureBase::TextureBase;
112 TextureBase::ClearValue clearValue);
146 static Ref<TextureView> Create(TextureBase* texture,
158 TextureView(TextureBase* texture, const TextureViewDescriptor* descriptor);
DTextureD3D12.cpp629 TextureBase::ClearValue::NonZero)); in InitializeAsInternalTexture()
649 : TextureBase(device, descriptor, state), in Texture()
661 TextureBase::DestroyImpl(); in DestroyImpl()
992 TextureBase::ClearValue clearValue) { in ClearTexture()
997 uint8_t clearColor = (clearValue == TextureBase::ClearValue::Zero) ? 0 : 1; in ClearTexture()
998 float fClearColor = (clearValue == TextureBase::ClearValue::Zero) ? 0.f : 1.f; in ClearTexture()
1010 if (clearValue == TextureBase::ClearValue::Zero && in ClearTexture()
1058 if (clearValue == TextureBase::ClearValue::Zero && in ClearTexture()
1115 if (clearValue == TextureBase::ClearValue::Zero && in ClearTexture()
1130 if (clearValue == TextureBase::ClearValue::Zero) { in ClearTexture()
[all …]
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/frag/
Dbitcasting.1d-as-2d.frag3 layout(binding = 0) uniform sampler1D TextureBase;
13 vec4 texSample0 = texture(TextureBase, VertGeom.x);
Dbitcasting.frag4 layout(binding = 0) uniform sampler2D TextureBase;
14 vec4 texSample0 = texture(TextureBase, VertGeom.xy);
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/
DDestroyObjectTests.cpp55 AcquireRef(new TextureMock(&mDevice, TextureBase::TextureState::OwnedInternal)); in GetTexture()
471 TextureMock textureMock(&mDevice, TextureBase::TextureState::OwnedInternal); in TEST_F()
479 TextureMock textureMock(&mDevice, TextureBase::TextureState::OwnedExternal); in TEST_F()
493 new TextureMock(&mDevice, TextureBase::TextureState::OwnedInternal); in TEST_F()
497 Ref<TextureBase> texture; in TEST_F()
507 new TextureMock(&mDevice, TextureBase::TextureState::OwnedExternal); in TEST_F()
511 Ref<TextureBase> texture; in TEST_F()
562 new TextureMock(&mDevice, TextureBase::TextureState::OwnedInternal); in TEST_F()
721 Ref<TextureBase> texture; in TEST_F()
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/frag/
Dbitcasting.frag17 fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> TextureBase [[texture(0)]], tex…
20 float4 _20 = TextureBase.sample(TextureBaseSmplr, in.VertGeom.xy);
Dbitcasting.1d-as-2d.frag17 fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> TextureBase [[texture(0)]], tex…
20 float4 _22 = TextureBase.sample(TextureBaseSmplr, float2(in.VertGeom.x, 0.5));
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/frag/
Dbitcasting.frag17 fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> TextureBase [[texture(0)]], tex…
20 float4 texSample0 = TextureBase.sample(TextureBaseSmplr, in.VertGeom.xy);
Dbitcasting.1d-as-2d.frag17 fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> TextureBase [[texture(0)]], tex…
20 float4 texSample0 = TextureBase.sample(TextureBaseSmplr, float2(in.VertGeom.x, 0.5));
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DTextureVk.h43 class Texture final : public TextureBase {
113 TextureBase::ClearValue);
173 static ResultOrError<Ref<TextureView>> Create(TextureBase* texture,
DDeviceVk.h73 TextureBase* CreateTextureWrappingVulkanImage(
133 ResultOrError<Ref<TextureBase>> CreateTextureImpl(
136 TextureBase* texture,
/third_party/skia/third_party/externals/dawn/src/dawn_native/null/
DDeviceNull.cpp167 ResultOrError<Ref<TextureBase>> Device::CreateTextureImpl(const TextureDescriptor* descriptor) { in CreateTextureImpl()
168 return AcquireRef(new Texture(this, descriptor, TextureBase::TextureState::OwnedInternal)); in CreateTextureImpl()
171 TextureBase* texture, in CreateTextureViewImpl()
423 new Texture(GetDevice(), &textureDesc, TextureBase::TextureState::OwnedInternal)); in GetCurrentTextureViewImpl()
452 TextureBase* OldSwapChain::GetNextTextureImpl(const TextureDescriptor* descriptor) { in GetNextTextureImpl()

123