mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
@@ -15,7 +15,8 @@ class CC_CORE_API GFXShader : public Object {
|
||||
virtual void destroy() = 0;
|
||||
|
||||
CC_INLINE GFXDevice* device() const { return _device; }
|
||||
CC_INLINE uint id() const { return _hash; }
|
||||
// Can not rename to `id` as JS code, because `id` is a keyword in objective-c.
|
||||
CC_INLINE uint hash() const { return _hash; }
|
||||
CC_INLINE const String& name() const { return _name; }
|
||||
CC_INLINE const GFXShaderStageList& stages() const { return _stages; }
|
||||
CC_INLINE const GFXUniformBlockList& blocks() const { return _blocks; }
|
||||
|
||||
@@ -60,7 +60,7 @@ skip = GFXBindingLayout::[GFXBindingLayout device bindingUnits],
|
||||
GFXCommandAllocator::[device],
|
||||
CCMTLCommandAllocator::[clearCommands]
|
||||
|
||||
rename_functions =
|
||||
rename_functions = GFXShader::[hash=id]
|
||||
|
||||
rename_classes =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user