Home
last modified time | relevance | path

Searched refs:wgpu (Results 1 – 25 of 447) sorted by relevance

12345678910>>...18

/third_party/skia/third_party/externals/dawn/src/utils/
DTextureUtils.cpp18 bool TextureFormatSupportsStorageTexture(wgpu::TextureFormat format) { in TextureFormatSupportsStorageTexture()
20 case wgpu::TextureFormat::R32Uint: in TextureFormatSupportsStorageTexture()
21 case wgpu::TextureFormat::R32Sint: in TextureFormatSupportsStorageTexture()
22 case wgpu::TextureFormat::R32Float: in TextureFormatSupportsStorageTexture()
23 case wgpu::TextureFormat::RGBA8Unorm: in TextureFormatSupportsStorageTexture()
24 case wgpu::TextureFormat::RGBA8Snorm: in TextureFormatSupportsStorageTexture()
25 case wgpu::TextureFormat::RGBA8Uint: in TextureFormatSupportsStorageTexture()
26 case wgpu::TextureFormat::RGBA8Sint: in TextureFormatSupportsStorageTexture()
27 case wgpu::TextureFormat::RG32Uint: in TextureFormatSupportsStorageTexture()
28 case wgpu::TextureFormat::RG32Sint: in TextureFormatSupportsStorageTexture()
[all …]
DTextureUtils.h26 static constexpr std::array<wgpu::TextureFormat, 94> kAllTextureFormats = {
27 wgpu::TextureFormat::R8Unorm,
28 wgpu::TextureFormat::R8Snorm,
29 wgpu::TextureFormat::R8Uint,
30 wgpu::TextureFormat::R8Sint,
31 wgpu::TextureFormat::R16Uint,
32 wgpu::TextureFormat::R16Sint,
33 wgpu::TextureFormat::R16Float,
34 wgpu::TextureFormat::RG8Unorm,
35 wgpu::TextureFormat::RG8Snorm,
[all …]
DWGPUHelpers.h31 wgpu::ShaderModule CreateShaderModuleFromASM(const wgpu::Device& device, const char* source);
32 wgpu::ShaderModule CreateShaderModule(const wgpu::Device& device, const char* source);
34 wgpu::Buffer CreateBufferFromData(const wgpu::Device& device,
37 wgpu::BufferUsage usage);
40 wgpu::Buffer CreateBufferFromData(const wgpu::Device& device, in CreateBufferFromData()
41 wgpu::BufferUsage usage, in CreateBufferFromData()
46 wgpu::ImageCopyBuffer CreateImageCopyBuffer(wgpu::Buffer buffer,
49 uint32_t rowsPerImage = wgpu::kCopyStrideUndefined);
50 wgpu::ImageCopyTexture CreateImageCopyTexture(
51 wgpu::Texture texture,
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DResourceUsageTrackingTests.cpp24 wgpu::Buffer CreateBuffer(uint64_t size, wgpu::BufferUsage usage) { in CreateBuffer()
25 wgpu::BufferDescriptor descriptor; in CreateBuffer()
32 wgpu::Texture CreateTexture(wgpu::TextureUsage usage, in CreateTexture()
33 wgpu::TextureFormat format = wgpu::TextureFormat::RGBA8Unorm) { in CreateTexture()
34 wgpu::TextureDescriptor descriptor; in CreateTexture()
35 descriptor.dimension = wgpu::TextureDimension::e2D; in CreateTexture()
49 wgpu::RenderPipeline CreateNoOpRenderPipeline() { in CreateNoOpRenderPipeline()
50 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, R"( in CreateNoOpRenderPipeline()
55 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, R"( in CreateNoOpRenderPipeline()
61 pipelineDescriptor.cTargets[0].writeMask = wgpu::ColorWriteMask::None; in CreateNoOpRenderPipeline()
[all …]
DStorageTextureValidationTests.cpp36 static const char* GetFloatImageTypeDeclaration(wgpu::TextureViewDimension dimension) { in GetFloatImageTypeDeclaration()
39 case wgpu::TextureViewDimension::e1D: in GetFloatImageTypeDeclaration()
41 case wgpu::TextureViewDimension::e2D: in GetFloatImageTypeDeclaration()
43 case wgpu::TextureViewDimension::e2DArray: in GetFloatImageTypeDeclaration()
45 case wgpu::TextureViewDimension::e3D: in GetFloatImageTypeDeclaration()
47 case wgpu::TextureViewDimension::Cube: in GetFloatImageTypeDeclaration()
49 case wgpu::TextureViewDimension::CubeArray: in GetFloatImageTypeDeclaration()
51 case wgpu::TextureViewDimension::Undefined: in GetFloatImageTypeDeclaration()
59 wgpu::StorageTextureAccess storageTextureBindingType, in CreateComputeShaderWithStorageTexture()
60 wgpu::TextureFormat textureFormat, in CreateComputeShaderWithStorageTexture()
[all …]
DBindGroupValidationTests.cpp24 wgpu::Texture CreateTexture(wgpu::TextureUsage usage, in CreateTexture()
25 wgpu::TextureFormat format, in CreateTexture()
27 wgpu::TextureDescriptor descriptor; in CreateTexture()
28 descriptor.dimension = wgpu::TextureDimension::e2D; in CreateTexture()
43 wgpu::BufferDescriptor descriptor; in SetUp()
45 descriptor.usage = wgpu::BufferUsage::Uniform; in SetUp()
49 wgpu::BufferDescriptor descriptor; in SetUp()
51 descriptor.usage = wgpu::BufferUsage::Storage; in SetUp()
57 CreateTexture(wgpu::TextureUsage::TextureBinding, kDefaultTextureFormat, 1); in SetUp()
60 wgpu::ExternalTextureDescriptor externalTextureDesc; in SetUp()
[all …]
DVideoViewsValidationTests.cpp29 wgpu::Texture CreateVideoTextureForTest(wgpu::TextureFormat format, in CreateVideoTextureForTest()
30 wgpu::TextureUsage usage) { in CreateVideoTextureForTest()
31 wgpu::TextureDescriptor descriptor; in CreateVideoTextureForTest()
32 descriptor.dimension = wgpu::TextureDimension::e2D; in CreateVideoTextureForTest()
43 wgpu::Texture videoTexture = CreateVideoTextureForTest( in TEST_F()
44 wgpu::TextureFormat::R8BG8Biplanar420Unorm, wgpu::TextureUsage::None); in TEST_F()
46 wgpu::TextureViewDescriptor viewDesc = {}; in TEST_F()
49 viewDesc.format = wgpu::TextureFormat::R8Uint; in TEST_F()
50 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
54 viewDesc.format = wgpu::TextureFormat::R8Unorm; in TEST_F()
[all …]
DCopyCommandsValidationTests.cpp25 wgpu::Buffer CreateBuffer(uint64_t size, wgpu::BufferUsage usage) { in CreateBuffer()
26 wgpu::BufferDescriptor descriptor; in CreateBuffer()
33 wgpu::Texture Create2DTexture(uint32_t width, in Create2DTexture()
37 wgpu::TextureFormat format, in Create2DTexture()
38 wgpu::TextureUsage usage, in Create2DTexture()
40 wgpu::TextureDescriptor descriptor; in Create2DTexture()
41 descriptor.dimension = wgpu::TextureDimension::e2D; in Create2DTexture()
49 wgpu::Texture tex = device.CreateTexture(&descriptor); in Create2DTexture()
53 wgpu::Texture Create3DTexture(uint32_t width, in Create3DTexture()
57 wgpu::TextureFormat format, in Create3DTexture()
[all …]
DBufferValidationTests.cpp35 wgpu::Buffer CreateMapReadBuffer(uint64_t size) { in CreateMapReadBuffer()
36 wgpu::BufferDescriptor descriptor; in CreateMapReadBuffer()
38 descriptor.usage = wgpu::BufferUsage::MapRead; in CreateMapReadBuffer()
43 wgpu::Buffer CreateMapWriteBuffer(uint64_t size) { in CreateMapWriteBuffer()
44 wgpu::BufferDescriptor descriptor; in CreateMapWriteBuffer()
46 descriptor.usage = wgpu::BufferUsage::MapWrite; in CreateMapWriteBuffer()
51 wgpu::Buffer BufferMappedAtCreation(uint64_t size, wgpu::BufferUsage usage) { in BufferMappedAtCreation()
52 wgpu::BufferDescriptor descriptor; in BufferMappedAtCreation()
60 void AssertMapAsyncError(wgpu::Buffer buffer, wgpu::MapMode mode, size_t offset, size_t size) { in AssertMapAsyncError()
67 wgpu::Queue queue;
[all …]
DQueryValidationTests.cpp21 wgpu::QuerySet CreateQuerySet( in CreateQuerySet()
22 wgpu::Device cDevice, in CreateQuerySet()
23 wgpu::QueryType queryType, in CreateQuerySet()
25 std::vector<wgpu::PipelineStatisticName> pipelineStatistics = {}) { in CreateQuerySet()
26 wgpu::QuerySetDescriptor descriptor;
42 CreateQuerySet(device, wgpu::QueryType::Occlusion, 1); in TEST_F()
45 ASSERT_DEVICE_ERROR(CreateQuerySet(device, wgpu::QueryType::PipelineStatistics, 1, in TEST_F()
46 {wgpu::PipelineStatisticName::VertexShaderInvocations})); in TEST_F()
47 ASSERT_DEVICE_ERROR(CreateQuerySet(device, wgpu::QueryType::Timestamp, 1)); in TEST_F()
53 CreateQuerySet(device, wgpu::QueryType::Occlusion, kMaxQueryCount); in TEST_F()
[all …]
DIndexBufferValidationTests.cpp23 wgpu::RenderPipeline MakeTestPipeline(wgpu::IndexFormat format, in MakeTestPipeline()
24 wgpu::PrimitiveTopology primitiveTopology) { in MakeTestPipeline()
25 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, R"( in MakeTestPipeline()
30 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, R"( in MakeTestPipeline()
40 descriptor.cTargets[0].format = wgpu::TextureFormat::RGBA8Unorm; in MakeTestPipeline()
48 wgpu::BufferDescriptor bufferDesc; in TEST_F()
49 bufferDesc.usage = wgpu::BufferUsage::Index; in TEST_F()
51 wgpu::Buffer buffer = device.CreateBuffer(&bufferDesc); in TEST_F()
54 wgpu::CommandEncoder encoder = device.CreateCommandEncoder(); in TEST_F()
55 wgpu::RenderPassEncoder pass = encoder.BeginRenderPass(&renderPass); in TEST_F()
[all …]
DTextureViewValidationTests.cpp26 constexpr wgpu::TextureFormat kDefaultTextureFormat = wgpu::TextureFormat::RGBA8Unorm;
28 wgpu::Texture Create2DArrayTexture(wgpu::Device& device, in Create2DArrayTexture()
34 wgpu::TextureDescriptor descriptor; in Create2DArrayTexture()
35 descriptor.dimension = wgpu::TextureDimension::e2D; in Create2DArrayTexture()
42 descriptor.usage = wgpu::TextureUsage::TextureBinding; in Create2DArrayTexture()
46 wgpu::Texture Create3DTexture(wgpu::Device& device) { in Create3DTexture()
47 wgpu::TextureDescriptor descriptor; in Create3DTexture()
48 descriptor.dimension = wgpu::TextureDimension::e3D; in Create3DTexture()
53 descriptor.usage = wgpu::TextureUsage::TextureBinding; in Create3DTexture()
57 wgpu::Texture CreateDepthStencilTexture(wgpu::Device& device, wgpu::TextureFormat format) { in CreateDepthStencilTexture()
[all …]
DRenderPassDescriptorValidationTests.cpp27 void AssertBeginRenderPassSuccess(const wgpu::RenderPassDescriptor* descriptor) { in AssertBeginRenderPassSuccess()
28 wgpu::CommandEncoder commandEncoder = TestBeginRenderPass(descriptor); in AssertBeginRenderPassSuccess()
31 void AssertBeginRenderPassError(const wgpu::RenderPassDescriptor* descriptor) { in AssertBeginRenderPassError()
32 wgpu::CommandEncoder commandEncoder = TestBeginRenderPass(descriptor); in AssertBeginRenderPassError()
37 wgpu::CommandEncoder TestBeginRenderPass(const wgpu::RenderPassDescriptor* descriptor) { in TestBeginRenderPass()
38 wgpu::CommandEncoder commandEncoder = device.CreateCommandEncoder(); in TestBeginRenderPass()
39 wgpu::RenderPassEncoder renderPassEncoder = commandEncoder.BeginRenderPass(descriptor); in TestBeginRenderPass()
45 wgpu::Texture CreateTexture(wgpu::Device& device, in CreateTexture()
46 wgpu::TextureDimension dimension, in CreateTexture()
47 wgpu::TextureFormat format, in CreateTexture()
[all …]
DExternalTextureTests.cpp23 wgpu::TextureDescriptor CreateDefaultTextureDescriptor() { in CreateDefaultTextureDescriptor()
24 wgpu::TextureDescriptor descriptor; in CreateDefaultTextureDescriptor()
30 descriptor.dimension = wgpu::TextureDimension::e2D; in CreateDefaultTextureDescriptor()
33 wgpu::TextureUsage::TextureBinding | wgpu::TextureUsage::RenderAttachment; in CreateDefaultTextureDescriptor()
50 static constexpr wgpu::TextureFormat kDefaultTextureFormat =
51 wgpu::TextureFormat::RGBA8Unorm;
53 wgpu::Queue queue;
59 wgpu::TextureDescriptor textureDescriptor = CreateDefaultTextureDescriptor(); in TEST_F()
60 wgpu::Texture texture = device.CreateTexture(&textureDescriptor); in TEST_F()
62 wgpu::ExternalTextureDescriptor externalDesc; in TEST_F()
[all …]
DCopyTextureForBrowserTests.cpp25 wgpu::Texture Create2DTexture(uint32_t width, in Create2DTexture()
29 wgpu::TextureFormat format, in Create2DTexture()
30 wgpu::TextureUsage usage, in Create2DTexture()
32 wgpu::TextureDescriptor descriptor; in Create2DTexture()
33 descriptor.dimension = wgpu::TextureDimension::e2D; in Create2DTexture()
41 wgpu::Texture tex = device.CreateTexture(&descriptor); in Create2DTexture()
46 wgpu::Texture srcTexture, in TestCopyTextureForBrowser()
48 wgpu::Origin3D srcOrigin, in TestCopyTextureForBrowser()
49 wgpu::Texture dstTexture, in TestCopyTextureForBrowser()
51 wgpu::Origin3D dstOrigin, in TestCopyTextureForBrowser()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DStorageTextureTests.cpp25 bool OpenGLESSupportsStorageTexture(wgpu::TextureFormat format) { in OpenGLESSupportsStorageTexture()
27 return format != wgpu::TextureFormat::RG32Float && in OpenGLESSupportsStorageTexture()
28 format != wgpu::TextureFormat::RG32Sint && format != wgpu::TextureFormat::RG32Uint; in OpenGLESSupportsStorageTexture()
35 wgpu::TextureFormat format, in FillExpectedData()
44 case wgpu::TextureFormat::R32Uint: { in FillExpectedData()
50 case wgpu::TextureFormat::RG32Uint: { in FillExpectedData()
57 case wgpu::TextureFormat::RGBA32Uint: { in FillExpectedData()
67 case wgpu::TextureFormat::R32Sint: { in FillExpectedData()
73 case wgpu::TextureFormat::RG32Sint: { in FillExpectedData()
80 case wgpu::TextureFormat::RGBA32Sint: { in FillExpectedData()
[all …]
DDepthStencilStateTests.cpp31 wgpu::TextureDescriptor renderTargetDescriptor; in SetUp()
32 renderTargetDescriptor.dimension = wgpu::TextureDimension::e2D; in SetUp()
37 renderTargetDescriptor.format = wgpu::TextureFormat::RGBA8Unorm; in SetUp()
40 wgpu::TextureUsage::RenderAttachment | wgpu::TextureUsage::CopySrc; in SetUp()
45 wgpu::TextureDescriptor depthDescriptor; in SetUp()
46 depthDescriptor.dimension = wgpu::TextureDimension::e2D; in SetUp()
51 depthDescriptor.format = wgpu::TextureFormat::Depth24PlusStencil8; in SetUp()
53 depthDescriptor.usage = wgpu::TextureUsage::RenderAttachment; in SetUp()
90 const wgpu::DepthStencilState& depthStencil;
94 wgpu::FrontFace frontFace = wgpu::FrontFace::CCW;
[all …]
DObjectCachingTests.cpp24 wgpu::BindGroupLayout bgl = utils::MakeBindGroupLayout( in TEST_P()
25 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform}}); in TEST_P()
26 wgpu::BindGroupLayout sameBgl = utils::MakeBindGroupLayout( in TEST_P()
27 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform}}); in TEST_P()
28 wgpu::BindGroupLayout otherBgl = utils::MakeBindGroupLayout( in TEST_P()
29 device, {{1, wgpu::ShaderStage::Vertex, wgpu::BufferBindingType::Uniform}}); in TEST_P()
37 wgpu::BindGroupLayout bgl = utils::MakeBindGroupLayout( in TEST_P()
38 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform, true}}); in TEST_P()
39 wgpu::BindGroupLayout sameBgl = utils::MakeBindGroupLayout( in TEST_P()
40 device, {{1, wgpu::ShaderStage::Fragment, wgpu::BufferBindingType::Uniform, true}}); in TEST_P()
[all …]
DTextureZeroInitTests.cpp40 wgpu::TextureDescriptor CreateTextureDescriptor(uint32_t mipLevelCount, in CreateTextureDescriptor()
42 wgpu::TextureUsage usage, in CreateTextureDescriptor()
43 wgpu::TextureFormat format) { in CreateTextureDescriptor()
44 wgpu::TextureDescriptor descriptor; in CreateTextureDescriptor()
45 descriptor.dimension = wgpu::TextureDimension::e2D; in CreateTextureDescriptor()
55 wgpu::TextureViewDescriptor CreateTextureViewDescriptor( in CreateTextureViewDescriptor()
58 wgpu::TextureFormat format = kColorFormat) { in CreateTextureViewDescriptor()
59 wgpu::TextureViewDescriptor descriptor; in CreateTextureViewDescriptor()
65 descriptor.dimension = wgpu::TextureViewDimension::e2D; in CreateTextureViewDescriptor()
68 wgpu::RenderPipeline CreatePipelineForTest(float depth = 0.f) { in CreatePipelineForTest()
[all …]
DIndexFormatTests.cpp33 wgpu::RenderPipeline MakeTestPipeline(wgpu::IndexFormat format, in MakeTestPipeline()
34 wgpu::PrimitiveTopology primitiveTopology = wgpu::PrimitiveTopology::TriangleStrip) { in MakeTestPipeline()
35 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, R"( in MakeTestPipeline()
49 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, R"( in MakeTestPipeline()
62 descriptor.cAttributes[0].format = wgpu::VertexFormat::Float32x4; in MakeTestPipeline()
71 wgpu::RenderPipeline pipeline = MakeTestPipeline(wgpu::IndexFormat::Uint32); in TEST_P()
73 wgpu::Buffer vertexBuffer = utils::CreateBufferFromData<float>( in TEST_P()
74 device, wgpu::BufferUsage::Vertex, in TEST_P()
78 wgpu::Buffer indexBuffer = in TEST_P()
79 utils::CreateBufferFromData<uint32_t>(device, wgpu::BufferUsage::Index, {1, 2, 3}); in TEST_P()
[all …]
DBindGroupTests.cpp31 wgpu::CommandBuffer CreateSimpleComputeCommandBuffer(const wgpu::ComputePipeline& pipeline, in CreateSimpleComputeCommandBuffer()
32 const wgpu::BindGroup& bindGroup) { in CreateSimpleComputeCommandBuffer()
33 wgpu::CommandEncoder encoder = device.CreateCommandEncoder(); in CreateSimpleComputeCommandBuffer()
34 wgpu::ComputePassEncoder pass = encoder.BeginComputePass(); in CreateSimpleComputeCommandBuffer()
42 wgpu::PipelineLayout MakeBasicPipelineLayout( in MakeBasicPipelineLayout()
43 std::vector<wgpu::BindGroupLayout> bindingInitializer) const { in MakeBasicPipelineLayout()
44 wgpu::PipelineLayoutDescriptor descriptor; in MakeBasicPipelineLayout()
52 wgpu::ShaderModule MakeSimpleVSModule() const { in MakeSimpleVSModule()
65 wgpu::ShaderModule MakeFSModule(std::vector<wgpu::BufferBindingType> bindingTypes) const { in MakeFSModule()
75 case wgpu::BufferBindingType::Uniform: in MakeFSModule()
[all …]
DGpuMemorySynchronizationTests.cpp24 wgpu::Buffer CreateBuffer() { in CreateBuffer()
25 wgpu::BufferDescriptor srcDesc; in CreateBuffer()
28 wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst | wgpu::BufferUsage::Storage; in CreateBuffer()
29 wgpu::Buffer buffer = device.CreateBuffer(&srcDesc); in CreateBuffer()
36 std::tuple<wgpu::ComputePipeline, wgpu::BindGroup> CreatePipelineAndBindGroupForCompute( in CreatePipelineAndBindGroupForCompute()
37 const wgpu::Buffer& buffer) { in CreatePipelineAndBindGroupForCompute()
38 wgpu::ShaderModule csModule = utils::CreateShaderModule(device, R"( in CreatePipelineAndBindGroupForCompute()
47 wgpu::ComputePipelineDescriptor cpDesc; in CreatePipelineAndBindGroupForCompute()
50 wgpu::ComputePipeline pipeline = device.CreateComputePipeline(&cpDesc); in CreatePipelineAndBindGroupForCompute()
52 wgpu::BindGroup bindGroup = in CreatePipelineAndBindGroupForCompute()
[all …]
DDepthStencilSamplingTests.cpp22 constexpr wgpu::TextureFormat kDepthFormats[] = {
23 wgpu::TextureFormat::Depth32Float,
24 wgpu::TextureFormat::Depth24Plus,
25 wgpu::TextureFormat::Depth24PlusStencil8,
26 wgpu::TextureFormat::Depth16Unorm,
29 constexpr wgpu::TextureFormat kStencilFormats[] = {
30 wgpu::TextureFormat::Depth24PlusStencil8,
33 constexpr wgpu::CompareFunction kCompareFunctions[] = {
34 wgpu::CompareFunction::Never, wgpu::CompareFunction::Less,
35 wgpu::CompareFunction::LessEqual, wgpu::CompareFunction::Greater,
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DFormat.cpp29 SampleTypeBit ToSampleTypeBit(wgpu::TextureComponentType type) { in ToSampleTypeBit()
31 case wgpu::TextureComponentType::Float: in ToSampleTypeBit()
33 case wgpu::TextureComponentType::Sint: in ToSampleTypeBit()
35 case wgpu::TextureComponentType::Uint: in ToSampleTypeBit()
37 case wgpu::TextureComponentType::DepthComparison: in ToSampleTypeBit()
43 SampleTypeBit SampleTypeToSampleTypeBit(wgpu::TextureSampleType sampleType) { in SampleTypeToSampleTypeBit()
45 case wgpu::TextureSampleType::Float: in SampleTypeToSampleTypeBit()
46 case wgpu::TextureSampleType::UnfilterableFloat: in SampleTypeToSampleTypeBit()
47 case wgpu::TextureSampleType::Sint: in SampleTypeToSampleTypeBit()
48 case wgpu::TextureSampleType::Uint: in SampleTypeToSampleTypeBit()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureD3D12.cpp37 D3D12_RESOURCE_STATES D3D12TextureUsage(wgpu::TextureUsage usage, const Format& format) { in D3D12TextureUsage()
47 if (usage & wgpu::TextureUsage::CopySrc) { in D3D12TextureUsage()
50 if (usage & wgpu::TextureUsage::CopyDst) { in D3D12TextureUsage()
53 if (usage & (wgpu::TextureUsage::TextureBinding)) { in D3D12TextureUsage()
57 if (usage & wgpu::TextureUsage::StorageBinding) { in D3D12TextureUsage()
60 if (usage & wgpu::TextureUsage::RenderAttachment) { in D3D12TextureUsage()
76 D3D12_RESOURCE_FLAGS D3D12ResourceFlags(wgpu::TextureUsage usage, in D3D12ResourceFlags()
81 if (usage & wgpu::TextureUsage::StorageBinding) { in D3D12ResourceFlags()
88 if ((usage & wgpu::TextureUsage::RenderAttachment) != 0 || isMultisampledTexture) { in D3D12ResourceFlags()
101 D3D12_RESOURCE_DIMENSION D3D12TextureDimension(wgpu::TextureDimension dimension) { in D3D12TextureDimension()
[all …]

12345678910>>...18