mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Metal-CPP: extend CA::MetalLayer* methods
Add: CGFloat CA::MetalLayer::contentsScale() const; CGRect CA::MetalLayer::bounds() const;
This commit is contained in:
committed by
Baldur Karlsson
parent
57f9ac6fed
commit
114d646cc2
@@ -6387,6 +6387,8 @@ namespace Private
|
||||
{
|
||||
namespace Selector
|
||||
{
|
||||
_CA_PRIVATE_DEF_SEL(bounds,
|
||||
"bounds");
|
||||
_CA_PRIVATE_DEF_SEL(device,
|
||||
"device");
|
||||
_CA_PRIVATE_DEF_SEL(drawableSize,
|
||||
@@ -6399,6 +6401,8 @@ namespace Private
|
||||
"nextDrawable");
|
||||
_CA_PRIVATE_DEF_SEL(pixelFormat,
|
||||
"pixelFormat");
|
||||
_CA_PRIVATE_DEF_SEL(contentsScale,
|
||||
"contentsScale");
|
||||
_CA_PRIVATE_DEF_SEL(setDevice_,
|
||||
"setDevice:");
|
||||
_CA_PRIVATE_DEF_SEL(setDrawableSize_,
|
||||
@@ -6456,6 +6460,9 @@ public:
|
||||
void setDrawableSize(CGSize drawableSize);
|
||||
|
||||
class MetalDrawable* nextDrawable();
|
||||
|
||||
CGFloat contentsScale() const;
|
||||
CGRect bounds() const;
|
||||
};
|
||||
} // namespace CA
|
||||
|
||||
@@ -6514,6 +6521,16 @@ _CA_INLINE CA::MetalDrawable* CA::MetalLayer::nextDrawable()
|
||||
_CA_PRIVATE_SEL(nextDrawable));
|
||||
}
|
||||
|
||||
_CA_INLINE CGFloat CA::MetalLayer::contentsScale() const
|
||||
{
|
||||
return Object::sendMessage< CGFloat >( this, _CA_PRIVATE_SEL( contentsScale ) );
|
||||
}
|
||||
|
||||
_CA_INLINE CGRect CA::MetalLayer::bounds() const
|
||||
{
|
||||
return Object::sendMessage< CGRect >( this, _CA_PRIVATE_SEL( bounds ) );
|
||||
}
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma once
|
||||
|
||||
Reference in New Issue
Block a user