Lines Matching refs:result
90 Result result = material->Initialize(allocator); in Create() local
91 if (result.IsSuccess()) in Create()
278 Result result = INITIALIZE_RESULT_OK; in CreateBuffers() local
288 result |= Result::MASK_FAIL_BIT; in CreateBuffers()
291 NW_ENSURE_AND_RETURN(result); in CreateBuffers()
297 NW_ENSURE_AND_RETURN(result); in CreateBuffers()
307 result |= Result::MASK_FAIL_BIT; in CreateBuffers()
312 return result; in CreateBuffers()
321 Result result = INITIALIZE_RESULT_OK; in CopyResMaterial() local
328 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
329 return ::std::make_pair(ResMaterial(NULL), result); in CopyResMaterial()
375 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
376 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
399 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
400 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
426 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
427 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
444 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
445 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
461 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
462 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
486 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
487 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
494 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
608 Result result = INITIALIZE_RESULT_OK; in CopyResFragmentLightingTable() local
613 result |= Result::MASK_FAIL_BIT; in CopyResFragmentLightingTable()
614 return ::std::make_pair(ResFragmentLightingTable(NULL), result); in CopyResFragmentLightingTable()
627 if (resFragmentLightingTable.GetReflectanceRSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
634 result |= copyResult.second; in CopyResFragmentLightingTable()
637 if (resFragmentLightingTable.GetReflectanceGSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
644 result |= copyResult.second; in CopyResFragmentLightingTable()
647 if (resFragmentLightingTable.GetReflectanceBSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
654 result |= copyResult.second; in CopyResFragmentLightingTable()
657 if (resFragmentLightingTable.GetDistribution0Sampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
664 result |= copyResult.second; in CopyResFragmentLightingTable()
667 if (resFragmentLightingTable.GetDistribution1Sampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
674 result |= copyResult.second; in CopyResFragmentLightingTable()
677 if (resFragmentLightingTable.GetFresnelSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
684 result |= copyResult.second; in CopyResFragmentLightingTable()
687 return ::std::make_pair(ResFragmentLightingTable(fragmentLightingTable), result); in CopyResFragmentLightingTable()
696 Result result = INITIALIZE_RESULT_OK; in CopyResLightingLookupTable() local
702 result |= Result::MASK_FAIL_BIT; in CopyResLightingLookupTable()
703 return ::std::make_pair(ResLightingLookupTable(NULL), result); in CopyResLightingLookupTable()
713 result |= Result::MASK_FAIL_BIT; in CopyResLightingLookupTable()
715 return ::std::make_pair(ResLightingLookupTable(NULL), result); in CopyResLightingLookupTable()
733 return ::std::make_pair(ResLightingLookupTable(lightingLookupTable), result); in CopyResLightingLookupTable()
822 Result result = INITIALIZE_RESULT_OK; in Initialize() local
824 result |= CreateBuffers(allocator); in Initialize()
825 NW_ENSURE_AND_RETURN(result); in Initialize()
827 return result; in Initialize()