Minor code review (#245)
This commit is contained in:
Родитель
208794397a
Коммит
d43b5d335c
|
@ -46,6 +46,12 @@ public:
|
|||
Impl(_In_ ID3D12Device* device, uint32_t effectFlags, const EffectPipelineStateDescription& pipelineDescription,
|
||||
D3D12_COMPARISON_FUNC alphaFunction);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
enum RootParameterIndex
|
||||
{
|
||||
ConstantBuffer,
|
||||
|
|
|
@ -56,6 +56,12 @@ class BasicEffect::Impl : public EffectBase<BasicEffectTraits>
|
|||
public:
|
||||
Impl(_In_ ID3D12Device* device, uint32_t effectFlags, const EffectPipelineStateDescription& pipelineDescription);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
enum RootParameterIndex
|
||||
{
|
||||
ConstantBuffer,
|
||||
|
|
|
@ -464,6 +464,12 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
D3D12_GPU_DESCRIPTOR_HANDLE Get(SamplerIndex i) const
|
||||
{
|
||||
return mDescriptors.GetGpuHandle(static_cast<size_t>(i));
|
||||
|
|
|
@ -47,6 +47,12 @@ public:
|
|||
Impl(_In_ ID3D12Device* device, uint32_t effectFlags, const EffectPipelineStateDescription& pipelineDescription,
|
||||
DebugEffect::Mode debugMode);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
enum RootParameterIndex
|
||||
{
|
||||
ConstantBuffer,
|
||||
|
|
|
@ -45,6 +45,12 @@ class DualTextureEffect::Impl : public EffectBase<DualTextureEffectTraits>
|
|||
public:
|
||||
Impl(_In_ ID3D12Device* device, uint32_t effectFlags, const EffectPipelineStateDescription& pipelineDescription);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
enum RootParameterIndex
|
||||
{
|
||||
Texture1SRV,
|
||||
|
|
|
@ -63,6 +63,12 @@ public:
|
|||
const EffectPipelineStateDescription& pipelineDescription,
|
||||
EnvironmentMapEffect::Mapping mapping);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
enum RootParameterIndex
|
||||
{
|
||||
TextureSRV,
|
||||
|
|
|
@ -27,6 +27,12 @@ class GeometricPrimitive::Impl
|
|||
public:
|
||||
Impl() noexcept : mIndexCount(0), mVertexBufferView{}, mIndexBufferView{} {}
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
void Initialize(const VertexCollection& vertices, const IndexCollection& indices, _In_opt_ ID3D12Device* device);
|
||||
|
||||
void LoadStaticBuffers(
|
||||
|
|
|
@ -71,6 +71,12 @@ class NormalMapEffect::Impl : public EffectBase<NormalMapEffectTraits>
|
|||
public:
|
||||
explicit Impl(_In_ ID3D12Device* device);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
void Initialize(
|
||||
_In_ ID3D12Device* device,
|
||||
uint32_t effectFlags,
|
||||
|
|
|
@ -73,6 +73,12 @@ class PBREffect::Impl : public EffectBase<PBREffectTraits>
|
|||
public:
|
||||
explicit Impl(_In_ ID3D12Device* device);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
void Initialize(
|
||||
_In_ ID3D12Device* device,
|
||||
uint32_t effectFlags,
|
||||
|
|
|
@ -24,6 +24,12 @@ class PrimitiveBatchBase::Impl
|
|||
public:
|
||||
Impl(_In_ ID3D12Device* device, size_t maxIndices, size_t maxVertices, size_t vertexSize);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
void Begin(_In_ ID3D12GraphicsCommandList* cmdList);
|
||||
void End();
|
||||
|
||||
|
|
|
@ -230,6 +230,12 @@ namespace
|
|||
generateMipsPSO = CreateGenMipsPipelineState(device, rootSignature.Get(), GenerateMips_main, sizeof(GenerateMips_main));
|
||||
}
|
||||
|
||||
GenerateMipsResources(const GenerateMipsResources&) = delete;
|
||||
GenerateMipsResources& operator=(const GenerateMipsResources&) = delete;
|
||||
|
||||
GenerateMipsResources(GenerateMipsResources&&) = default;
|
||||
GenerateMipsResources& operator=(GenerateMipsResources&&) = default;
|
||||
|
||||
private:
|
||||
static ComPtr<ID3D12RootSignature> CreateGenMipsRootSignature(
|
||||
_In_ ID3D12Device* device)
|
||||
|
@ -315,6 +321,12 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
// Call this before your multiple calls to Upload.
|
||||
void Begin(D3D12_COMMAND_LIST_TYPE commandType)
|
||||
{
|
||||
|
|
|
@ -58,6 +58,12 @@ class SkinnedEffect::Impl : public EffectBase<SkinnedEffectTraits>
|
|||
public:
|
||||
Impl(_In_ ID3D12Device* device, uint32_t effectFlags, const EffectPipelineStateDescription& pipelineDescription);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
enum RootParameterIndex
|
||||
{
|
||||
ConstantBuffer,
|
||||
|
|
|
@ -79,6 +79,12 @@ public:
|
|||
const SpriteBatchPipelineStateDescription& psoDesc,
|
||||
const D3D12_VIEWPORT* viewport);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
void XM_CALLCONV Begin(
|
||||
_In_ ID3D12GraphicsCommandList* commandList,
|
||||
SpriteSortMode sortMode = SpriteSortMode_Deferred,
|
||||
|
|
|
@ -39,6 +39,12 @@ public:
|
|||
size_t glyphCount,
|
||||
float lineSpacing) noexcept(false);
|
||||
|
||||
Impl(const Impl&) = delete;
|
||||
Impl& operator=(const Impl&) = delete;
|
||||
|
||||
Impl(Impl&&) = default;
|
||||
Impl& operator=(Impl&&) = default;
|
||||
|
||||
Glyph const* FindGlyph(wchar_t character) const;
|
||||
|
||||
void SetDefaultCharacter(wchar_t character);
|
||||
|
|
Загрузка…
Ссылка в новой задаче