mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 22:53:35 +00:00
Add explicit to D3D12 specific files.
This CL updates the d3d12 files to add explicit to single parameter constructors. Bug: dawn:1339 Change-Id: I7896fa37a5eed90fb4184951bd4d823f96d8e88b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86642 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
a1f13f8bad
commit
9aa4b11281
@ -25,7 +25,7 @@ namespace dawn::native::d3d12 {
|
|||||||
|
|
||||||
class Backend : public BackendConnection {
|
class Backend : public BackendConnection {
|
||||||
public:
|
public:
|
||||||
Backend(InstanceBase* instance);
|
explicit Backend(InstanceBase* instance);
|
||||||
|
|
||||||
MaybeError Initialize();
|
MaybeError Initialize();
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ namespace dawn::native::d3d12 {
|
|||||||
|
|
||||||
class CommandAllocatorManager {
|
class CommandAllocatorManager {
|
||||||
public:
|
public:
|
||||||
CommandAllocatorManager(Device* device);
|
explicit CommandAllocatorManager(Device* device);
|
||||||
|
|
||||||
// A CommandAllocator that is reserved must be used on the next ExecuteCommandLists
|
// A CommandAllocator that is reserved must be used on the next ExecuteCommandLists
|
||||||
// otherwise its commands may be reset before execution has completed on the GPU
|
// otherwise its commands may be reset before execution has completed on the GPU
|
||||||
|
@ -312,7 +312,7 @@ namespace dawn::native::d3d12 {
|
|||||||
using Base = BindGroupTrackerBase;
|
using Base = BindGroupTrackerBase;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BindGroupStateTracker(Device* device)
|
explicit BindGroupStateTracker(Device* device)
|
||||||
: BindGroupTrackerBase(),
|
: BindGroupTrackerBase(),
|
||||||
mDevice(device),
|
mDevice(device),
|
||||||
mViewAllocator(device->GetViewShaderVisibleDescriptorAllocator()),
|
mViewAllocator(device->GetViewShaderVisibleDescriptorAllocator()),
|
||||||
|
@ -31,7 +31,7 @@ namespace dawn::native::d3d12 {
|
|||||||
// Wraps 11 wrapped resources in a cache.
|
// Wraps 11 wrapped resources in a cache.
|
||||||
class D3D11on12ResourceCacheEntry : public RefCounted {
|
class D3D11on12ResourceCacheEntry : public RefCounted {
|
||||||
public:
|
public:
|
||||||
D3D11on12ResourceCacheEntry(ComPtr<ID3D11On12Device> d3d11on12Device);
|
explicit D3D11on12ResourceCacheEntry(ComPtr<ID3D11On12Device> d3d11on12Device);
|
||||||
D3D11on12ResourceCacheEntry(ComPtr<IDXGIKeyedMutex> d3d11on12Resource,
|
D3D11on12ResourceCacheEntry(ComPtr<IDXGIKeyedMutex> d3d11on12Resource,
|
||||||
ComPtr<ID3D11On12Device> d3d11on12Device);
|
ComPtr<ID3D11On12Device> d3d11on12Device);
|
||||||
~D3D11on12ResourceCacheEntry();
|
~D3D11on12ResourceCacheEntry();
|
||||||
|
@ -35,7 +35,7 @@ namespace dawn::native::d3d12 {
|
|||||||
// operations is extracted from the descriptors.
|
// operations is extracted from the descriptors.
|
||||||
class RenderPassBuilder {
|
class RenderPassBuilder {
|
||||||
public:
|
public:
|
||||||
RenderPassBuilder(bool hasUAV);
|
explicit RenderPassBuilder(bool hasUAV);
|
||||||
|
|
||||||
// Returns the highest color attachment index + 1. If there is no color attachment, returns
|
// Returns the highest color attachment index + 1. If there is no color attachment, returns
|
||||||
// 0. Range: [0, kMaxColorAttachments + 1)
|
// 0. Range: [0, kMaxColorAttachments + 1)
|
||||||
|
@ -30,7 +30,7 @@ namespace dawn::native::d3d12 {
|
|||||||
|
|
||||||
class ResidencyManager {
|
class ResidencyManager {
|
||||||
public:
|
public:
|
||||||
ResidencyManager(Device* device);
|
explicit ResidencyManager(Device* device);
|
||||||
|
|
||||||
MaybeError LockAllocation(Pageable* pageable);
|
MaybeError LockAllocation(Pageable* pageable);
|
||||||
void UnlockAllocation(Pageable* pageable);
|
void UnlockAllocation(Pageable* pageable);
|
||||||
|
@ -57,7 +57,7 @@ namespace dawn::native::d3d12 {
|
|||||||
// multiple allocation methods.
|
// multiple allocation methods.
|
||||||
class ResourceAllocatorManager {
|
class ResourceAllocatorManager {
|
||||||
public:
|
public:
|
||||||
ResourceAllocatorManager(Device* device);
|
explicit ResourceAllocatorManager(Device* device);
|
||||||
|
|
||||||
ResultOrError<ResourceHeapAllocation> AllocateMemory(
|
ResultOrError<ResourceHeapAllocation> AllocateMemory(
|
||||||
D3D12_HEAP_TYPE heapType,
|
D3D12_HEAP_TYPE heapType,
|
||||||
|
@ -45,7 +45,7 @@ namespace dawn::native::d3d12 {
|
|||||||
class SamplerHeapCacheEntry : public RefCounted {
|
class SamplerHeapCacheEntry : public RefCounted {
|
||||||
public:
|
public:
|
||||||
SamplerHeapCacheEntry() = default;
|
SamplerHeapCacheEntry() = default;
|
||||||
SamplerHeapCacheEntry(std::vector<Sampler*> samplers);
|
explicit SamplerHeapCacheEntry(std::vector<Sampler*> samplers);
|
||||||
SamplerHeapCacheEntry(SamplerHeapCache* cache,
|
SamplerHeapCacheEntry(SamplerHeapCache* cache,
|
||||||
StagingDescriptorAllocator* allocator,
|
StagingDescriptorAllocator* allocator,
|
||||||
std::vector<Sampler*> samplers,
|
std::vector<Sampler*> samplers,
|
||||||
@ -83,7 +83,7 @@ namespace dawn::native::d3d12 {
|
|||||||
// BindGroup.
|
// BindGroup.
|
||||||
class SamplerHeapCache {
|
class SamplerHeapCache {
|
||||||
public:
|
public:
|
||||||
SamplerHeapCache(Device* device);
|
explicit SamplerHeapCache(Device* device);
|
||||||
~SamplerHeapCache();
|
~SamplerHeapCache();
|
||||||
|
|
||||||
ResultOrError<Ref<SamplerHeapCacheEntry>> GetOrCreate(
|
ResultOrError<Ref<SamplerHeapCacheEntry>> GetOrCreate(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user