Skip to content

Commit 25feb1b

Browse files
committed
save
1 parent f9b5867 commit 25feb1b

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

Coplt.Graphics.Core/Native/Native.D3d12.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,20 @@ public FShaderStageFlags GetStages()
589589
return ((delegate* unmanaged[Thiscall]<FD3d12GraphicsShaderPipeline*, FGraphicsPipelineState*>)(lpVtbl[8]))((FD3d12GraphicsShaderPipeline*)Unsafe.AsPointer(ref this));
590590
}
591591

592+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
593+
[return: NativeTypeName("const FShaderInputLayout *")]
594+
public FShaderInputLayout* GetInputLayout()
595+
{
596+
return ((delegate* unmanaged[Thiscall]<FD3d12GraphicsShaderPipeline*, FShaderInputLayout*>)(lpVtbl[9]))((FD3d12GraphicsShaderPipeline*)Unsafe.AsPointer(ref this));
597+
}
598+
599+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
600+
[return: NativeTypeName("const FMeshLayout *")]
601+
public FMeshLayout* GetMeshLayout()
602+
{
603+
return ((delegate* unmanaged[Thiscall]<FD3d12GraphicsShaderPipeline*, FMeshLayout*>)(lpVtbl[10]))((FD3d12GraphicsShaderPipeline*)Unsafe.AsPointer(ref this));
604+
}
605+
592606
public interface Interface : FGraphicsShaderPipeline.Interface
593607
{
594608
}

Coplt.Graphics.Core/Native/Native.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,10 +3028,30 @@ public FShaderStageFlags GetStages()
30283028
return ((delegate* unmanaged[Thiscall]<FGraphicsShaderPipeline*, FGraphicsPipelineState*>)(lpVtbl[8]))((FGraphicsShaderPipeline*)Unsafe.AsPointer(ref this));
30293029
}
30303030

3031+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
3032+
[return: NativeTypeName("const FShaderInputLayout *")]
3033+
public FShaderInputLayout* GetInputLayout()
3034+
{
3035+
return ((delegate* unmanaged[Thiscall]<FGraphicsShaderPipeline*, FShaderInputLayout*>)(lpVtbl[9]))((FGraphicsShaderPipeline*)Unsafe.AsPointer(ref this));
3036+
}
3037+
3038+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
3039+
[return: NativeTypeName("const FMeshLayout *")]
3040+
public FMeshLayout* GetMeshLayout()
3041+
{
3042+
return ((delegate* unmanaged[Thiscall]<FGraphicsShaderPipeline*, FMeshLayout*>)(lpVtbl[10]))((FGraphicsShaderPipeline*)Unsafe.AsPointer(ref this));
3043+
}
3044+
30313045
public interface Interface : FShaderPipeline.Interface
30323046
{
30333047
[return: NativeTypeName("const FGraphicsPipelineState *")]
30343048
FGraphicsPipelineState* GetGraphicsState();
3049+
3050+
[return: NativeTypeName("const FShaderInputLayout *")]
3051+
FShaderInputLayout* GetInputLayout();
3052+
3053+
[return: NativeTypeName("const FMeshLayout *")]
3054+
FMeshLayout* GetMeshLayout();
30353055
}
30363056
}
30373057

Coplt.Graphics.Native/D3d12/Src/Command.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void D3d12CommandInterpreter::InitStates(const FCommandSubmit& submit)
131131
state.Resource = GetResource(res);
132132
state.Type = res.Type;
133133
state.CurrentState = state.LastState = ToDx(res.CurrentState);
134-
m_states.push_back(std::move(state));
134+
m_states.push_back(state);
135135
}
136136
}
137137

@@ -292,7 +292,7 @@ void D3d12CommandInterpreter::CollectBarrier(const FCommandSubmit& submit)
292292
ReqState(cmd.Dst.Buffer, FResourceState::CopyDst);
293293
break;
294294
case FBufferRefType::Upload:
295-
throw new WRuntimeException(
295+
throw WRuntimeException(
296296
fmt::format(L"The upload buffer cannot be used as a copy target at command {}", i)
297297
);
298298
}

0 commit comments

Comments
 (0)