Fix drawing editor thumbnails when texture used by asset is using dynamic streaming
This commit is contained in:
@@ -302,6 +302,12 @@ bool TextureBase::HasStreamingError() const
|
||||
return _texture.Streaming.Error;
|
||||
}
|
||||
|
||||
void TextureBase::SetStreamingVisible() const
|
||||
{
|
||||
if (_texture.GetTexture())
|
||||
_texture.GetTexture()->LastRenderTime = Platform::GetTimeSeconds();
|
||||
}
|
||||
|
||||
BytesContainer TextureBase::GetMipData(int32 mipIndex, int32& rowPitch, int32& slicePitch)
|
||||
{
|
||||
BytesContainer result;
|
||||
|
||||
@@ -153,6 +153,11 @@ public:
|
||||
/// </summary>
|
||||
API_PROPERTY() bool HasStreamingError() const;
|
||||
|
||||
/// <summary>
|
||||
/// Sets the texture as visible this frame to inform streaming about usage which will stream boost its priority for the streaming.
|
||||
/// </summary>
|
||||
API_FUNCTION() void SetStreamingVisible() const;
|
||||
|
||||
public:
|
||||
/// <summary>
|
||||
/// Gets the mip data.
|
||||
|
||||
Reference in New Issue
Block a user