Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ BlitPipelineCache::Create(const BlitPipelineDescriptor& descriptor) {
}

u32 BlitPipelineCache::Hash(const BlitPipelineDescriptor& descriptor) {
return (u32)descriptor.pixel_format | ((u32)descriptor.transparent << 12);
return static_cast<u32>(descriptor.pixel_format) |
(static_cast<u32>(descriptor.transparent) << 12);
}

void BlitPipelineCache::DestroyElement(MTL::RenderPipelineState* pipeline) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ClearDepthPipelineCache::Create(MTL::PixelFormat pixel_format) {
}

u32 ClearDepthPipelineCache::Hash(MTL::PixelFormat pixel_format) {
return (u32)pixel_format;
return static_cast<u32>(pixel_format);
}

void ClearDepthPipelineCache::DestroyElement(
Expand Down
Loading