refactor(srp): move urp shadow execution bridge into managed
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
namespace XCEngine.Rendering
|
||||
{
|
||||
public sealed class DirectionalShadowExecutionContext
|
||||
{
|
||||
private readonly ulong m_nativeHandle;
|
||||
|
||||
internal DirectionalShadowExecutionContext(
|
||||
ulong nativeHandle)
|
||||
{
|
||||
m_nativeHandle = nativeHandle;
|
||||
}
|
||||
|
||||
public bool hasPlannedMainDirectionalShadow =>
|
||||
InternalCalls
|
||||
.Rendering_DirectionalShadowExecutionContext_GetHasPlannedMainDirectionalShadow(
|
||||
m_nativeHandle);
|
||||
|
||||
public int rendererIndex =>
|
||||
InternalCalls
|
||||
.Rendering_DirectionalShadowExecutionContext_GetRendererIndex(
|
||||
m_nativeHandle);
|
||||
|
||||
public bool isConfigured =>
|
||||
InternalCalls
|
||||
.Rendering_DirectionalShadowExecutionContext_GetIsConfigured(
|
||||
m_nativeHandle);
|
||||
|
||||
public bool UseDefaultMainDirectionalShadowExecution()
|
||||
{
|
||||
return InternalCalls
|
||||
.Rendering_DirectionalShadowExecutionContext_UseDefaultMainDirectionalShadowExecution(
|
||||
m_nativeHandle);
|
||||
}
|
||||
|
||||
public void ClearDirectionalShadowExecution()
|
||||
{
|
||||
InternalCalls
|
||||
.Rendering_DirectionalShadowExecutionContext_ClearDirectionalShadowExecution(
|
||||
m_nativeHandle);
|
||||
}
|
||||
|
||||
internal ulong nativeHandle =>
|
||||
m_nativeHandle;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user