| 76 | } |
| 77 | |
| 78 | Pass* Pass::createWithProgramState(Technique* technique, backend::ProgramState* programState) |
| 79 | { |
| 80 | auto pass = new Pass(); |
| 81 | if (pass->initWithProgramState(technique, programState)) |
| 82 | { |
| 83 | pass->autorelease(); |
| 84 | return pass; |
| 85 | } |
| 86 | AX_SAFE_DELETE(pass); |
| 87 | return nullptr; |
| 88 | } |
| 89 | |
| 90 | bool Pass::init(Technique* technique) |
| 91 | { |
nothing calls this directly
no test coverage detected