@@ -253,7 +253,7 @@ public:
|
||||
/// </summary>
|
||||
FORCE_INLINE float GetTotalSeconds() const
|
||||
{
|
||||
return static_cast<float>(Ticks) / TicksPerSecond;
|
||||
return (float)((double)Ticks / TicksPerSecond);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
@@ -50,13 +50,10 @@ IMaterial::BindParameters::BindParameters(::GPUContext* context, const ::RenderC
|
||||
}
|
||||
|
||||
IMaterial::BindParameters::BindParameters(::GPUContext* context, const ::RenderContext& renderContext, const ::DrawCall& drawCall, bool instanced)
|
||||
: GPUContext(context)
|
||||
, RenderContext(renderContext)
|
||||
, DrawCall(&drawCall)
|
||||
, Time(Time::Draw.UnscaledTime.GetTotalSeconds())
|
||||
, ScaledTime(Time::Draw.Time.GetTotalSeconds())
|
||||
, Instanced(instanced)
|
||||
: BindParameters(context, renderContext)
|
||||
{
|
||||
DrawCall = &drawCall;
|
||||
Instanced = instanced;
|
||||
}
|
||||
|
||||
GPUConstantBuffer* IMaterial::BindParameters::PerViewConstants = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user