Lines Matching refs:result
88 Result result = material->Initialize(allocator); in Create() local
89 if (result.IsSuccess()) in Create()
276 Result result = INITIALIZE_RESULT_OK; in CreateBuffers() local
286 result |= Result::MASK_FAIL_BIT; in CreateBuffers()
289 NW_ENSURE_AND_RETURN(result); in CreateBuffers()
295 NW_ENSURE_AND_RETURN(result); in CreateBuffers()
305 result |= Result::MASK_FAIL_BIT; in CreateBuffers()
310 return result; in CreateBuffers()
319 Result result = INITIALIZE_RESULT_OK; in CopyResMaterial() local
326 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
327 return ::std::make_pair(ResMaterial(NULL), result); in CopyResMaterial()
373 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
374 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
397 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
398 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
424 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
425 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
442 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
443 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
459 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
460 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
484 result |= Result::MASK_FAIL_BIT; in CopyResMaterial()
485 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
492 return ::std::make_pair(copyMaterial, result); in CopyResMaterial()
606 Result result = INITIALIZE_RESULT_OK; in CopyResFragmentLightingTable() local
611 result |= Result::MASK_FAIL_BIT; in CopyResFragmentLightingTable()
612 return ::std::make_pair(ResFragmentLightingTable(NULL), result); in CopyResFragmentLightingTable()
625 if (resFragmentLightingTable.GetReflectanceRSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
632 result |= copyResult.second; in CopyResFragmentLightingTable()
635 if (resFragmentLightingTable.GetReflectanceGSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
642 result |= copyResult.second; in CopyResFragmentLightingTable()
645 if (resFragmentLightingTable.GetReflectanceBSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
652 result |= copyResult.second; in CopyResFragmentLightingTable()
655 if (resFragmentLightingTable.GetDistribution0Sampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
662 result |= copyResult.second; in CopyResFragmentLightingTable()
665 if (resFragmentLightingTable.GetDistribution1Sampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
672 result |= copyResult.second; in CopyResFragmentLightingTable()
675 if (resFragmentLightingTable.GetFresnelSampler().IsValid() && result.IsSuccess()) in CopyResFragmentLightingTable()
682 result |= copyResult.second; in CopyResFragmentLightingTable()
685 return ::std::make_pair(ResFragmentLightingTable(fragmentLightingTable), result); in CopyResFragmentLightingTable()
694 Result result = INITIALIZE_RESULT_OK; in CopyResLightingLookupTable() local
700 result |= Result::MASK_FAIL_BIT; in CopyResLightingLookupTable()
701 return ::std::make_pair(ResLightingLookupTable(NULL), result); in CopyResLightingLookupTable()
711 result |= Result::MASK_FAIL_BIT; in CopyResLightingLookupTable()
713 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()