| /NW4C-1.2.23/include/nw/ut/ |
| D | ut_ResDeclMacros.h | 27 type Get##name() const { return static_cast<type>(ref().m_##name); } \ 28 void Set##name(type value) { ref().m_##name = value; } \ 32 bool Is##name() const { return static_cast<bool>(ref().m_Is##name); } \ 33 void Set##name(bool value) { ref().m_Is##name = value; } \ 37 const char* Get##name() const { return ref().to##name.to_ptr(); } \ 41 type Get##name() { return type( ref().to##name.to_ptr() ); } \ 42 const type Get##name() const { return type( ref().to##name.to_ptr() ); } \ 45 type& Get##name() { return ref().m_##name; } \ 46 const type& Get##name() const { return ref().m_##name; } \ 47 void Set##name(const type& value) { ref().m_##name = value; } \ [all …]
|
| D | ut_ResMetaData.h | 77 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in NW_RES_FIELD_STRING_DECL() 88 s32 GetValuesCount() const { return ref().m_ValuesCount; } in NW_RES_CTOR_INHERIT() 89 const s32* GetValues() const { return &(ref().m_Values[0]); } in GetValues() 90 s32* GetValues() { return &(ref().m_Values[0]); } in GetValues() 92 s32 GetValues(int idx) const { return ref().m_Values[idx]; } in GetValues() 93 void SetValues(int idx, s32 value) { ref().m_Values[idx] = value; } in SetValues() 95 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 106 s32 GetValuesCount() const { return ref().m_ValuesCount; } in NW_RES_CTOR_INHERIT() 108 const f32* GetValues() const { return &(ref().m_Values[0]); } in GetValues() 109 f32* GetValues() { return &(ref().m_Values[0]); } in GetValues() [all …]
|
| D | ut_ResUtil.h | 131 class_name##Data& ref() \ 136 const class_name##Data& ref() const \ 172 ResDataType& ref() \ 178 const ResDataType& ref() const \ 336 … NW_FORCE_INLINE T& ref() { NW_ASSERT(this->IsValid()); return *reinterpret_cast<T*>(void_ptr()); } in ref() function 339 …NW_FORCE_INLINE const T& ref() const { NW_ASSERT(this->IsValid()); return *reinterpret_cast<const … in ref() function 414 s32 GetLength() const { return ref().len; } in NW_RES_CTOR() 417 const char* GetName() const { return &ref().str[0]; } in GetName() 451 NW_ASSERT( (ref().byteOrder == BOM) || (ref().byteOrder == BOM) ); in NW_RES_CTOR() 453 return *(u8*)(&ref().byteOrder) == 0xFE; in NW_RES_CTOR() [all …]
|
| D | ut_ResDictionary.h | 109 s32 GetCount() const { return ref().numData; } in NW_RES_CTOR() 116 if ( idx < 0 || s32(ref().numData) <= idx ) { return NULL; } 117 return const_cast<void*>( ref().data[idx].ofsData.to_ptr() ); 124 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() ); 131 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() ); 155 ResU32 ref; member 176 s32 GetCount() const { return ref().numData; } in GetCount() 182 NW_MINMAX_ASSERT( idx, 0, static_cast<int>(ref().numData - 1) ); 184 return const_cast<void*>(ref().data[idx + 1].ofsData.to_ptr()); 295 u32 GetLength() const { return ref().length; } in GetLength() [all …]
|
| /NW4C-1.2.23/include/nw/gfx/res/ |
| D | gfx_ResMaterial.h | 227 const nw::ut::FloatColor& GetAmbient() const { return ref().m_AmbientAndVertexColorScale; } in NW_RES_CTOR() 234 f32 GetVertexColorScale() const { return ref().m_AmbientAndVertexColorScale.a; } in GetVertexColorScale() 241 void SetVertexColorScale(f32 scale) { ref().m_AmbientAndVertexColorScale.a = scale; } in SetVertexColorScale() 248 u32 GetAmbientU32() const { return ref().m_AmbientU32; } in GetAmbientU32() 259 ref().m_AmbientAndVertexColorScale.SetColor(r, g, b); in SetAmbient() 260 ref().m_AmbientU32 = ref().m_AmbientAndVertexColorScale.ToPicaU32(); in SetAmbient() 457 return static_cast<CullingMode>(this->ref().m_CullingMode); in NW_RES_FIELD_PRIMITIVE_DECL() 469 this->ref().m_CullingMode = static_cast<u32>(value); in SetCullingMode() 479 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetCullingMode() 561 return static_cast<Mode>(ref().m_Mode); in NW_RES_CTOR() [all …]
|
| D | gfx_ResFragmentShader.h | 395 return TABLE[ref().m_Scale]; in NW_RES_FIELD_PRIMITIVE_DECL() 407 if (scale == 1.0f) { ref().m_Scale = SCALE_1; } in SetScaleF32() 408 else if (scale == 2.0f) { ref().m_Scale = SCALE_2; } in SetScaleF32() 409 else if (scale == 4.0f) { ref().m_Scale = SCALE_4; } in SetScaleF32() 410 else if (scale == 8.0f) { ref().m_Scale = SCALE_8; } in SetScaleF32() 411 else if (scale == 0.25f) { ref().m_Scale = SCALE_0_25; } in SetScaleF32() 412 else if (scale == 0.5f) { ref().m_Scale = SCALE_0_5; } in SetScaleF32() 452 referenceLut.ref().toTargetLut.set_ptr(resImageLookupTable.ptr()); in SetSampler() 629 … return internal::GetCmdValue( ref().m_CommandBuffer[0], CMD_MASK, CMD_SHIFT ) ? true : false; in IsTestEnabled() 641 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestEnabled() [all …]
|
| D | gfx_ResLight.h | 284 referenceLut.ref().toTargetLut.set_ptr(lookupTable.ptr()); in NW_RES_CTOR_INHERIT() 294 return ref().m_DistanceAttenuationStart; in GetDistanceAttenuationStart() 304 return ref().m_DistanceAttenuationEnd; in GetDistanceAttenuationEnd() 312 ref().m_DistanceAttenuationStart = start; in SetDistanceAttenuationStart() 313 SetDistanceAttenuation(ref().m_DistanceAttenuationStart, ref().m_DistanceAttenuationEnd); in SetDistanceAttenuationStart() 321 ref().m_DistanceAttenuationEnd = end; in SetDistanceAttenuationEnd() 322 SetDistanceAttenuation(ref().m_DistanceAttenuationStart, ref().m_DistanceAttenuationEnd); in SetDistanceAttenuationEnd() 341 ref().m_DistanceAttenuationScale = ut::Float20::Float32ToBits20(1.0f / diff); in SetDistanceAttenuation() 342 ref().m_DistanceAttenuationBias = ut::Float20::Float32ToBits20(-start / diff); in SetDistanceAttenuation() 454 … bool IsDistanceAttenuationEnabled() const { return ref().m_IsDistanceAttenuationEnabled != 0.0f; } in NW_RES_CTOR_INHERIT() [all …]
|
| D | gfx_ResTextureMapper.h | 108 return static_cast<MinFilter>(this->ref().m_MinFilter); in NW_RES_CTOR() 117 this->ref().m_MinFilter = static_cast<MinFilter>(value); in SetMinFilter() 201 return static_cast<ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData() 211 return static_cast<const ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData() 219 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 241 const ut::FloatColor& GetBorderColor() const { return ref().m_BorderColor; } in NW_RES_CTOR_INHERIT() 248 ref().m_BorderColor = value; in SetBorderColor() 249 u32 borderColorU32 = ref().m_BorderColor.ToPicaU32(); in SetBorderColor() 266 ref().m_BorderColor.Set(r, g, b); in SetBorderColor() 267 u32 borderColorU32 = ref().m_BorderColor.ToPicaU32(); in SetBorderColor() [all …]
|
| D | gfx_ResShader.h | 164 const f32* GetValueF32() const { return &ref().m_Value[0]; } in NW_RES_FIELD_PRIMITIVE_DECL() 174 f32* GetValueF32() { return &ref().m_Value[0]; } in GetValueF32() 184 const s32* GetValueS32() const { return reinterpret_cast<const s32*>( &ref().m_Value[0] ); } in GetValueS32() 194 s32* GetValueS32() { return reinterpret_cast<s32*>( &ref().m_Value[0] ); } in GetValueS32() 201 … bool GetValueBool() const { return *reinterpret_cast<const s32*>( &ref().m_Value[0]) != 0; } in GetValueBool() 589 void* GetUniformLocation() { return ref().m_UniformLocation; } in NW_RES_FIELD_PRIMITIVE_DECL() 590 const void* GetUniformLocation() const { return ref().m_UniformLocation; } in GetUniformLocation() 591 …void SetUniformLocation(void* uniformLocation) { ref().m_UniformLocation = uniformLocation;… in SetUniformLocation() 601 return static_cast<ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData() 611 return static_cast<const ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData() [all …]
|
| D | gfx_ResVertex.h | 124 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in GetTypeInfo() 283 u32 GetLocationAddress() const { return ref().m_LocationAddress; } in NW_RES_CTOR_INHERIT() 290 void SetLocationAddress(u32 address) { ref().m_LocationAddress = address; } in SetLocationAddress() 291 …void SetLocationAddress(const void* address) { ref().m_LocationAddress = reinterpret_cast<u32>(add… in SetLocationAddress() 514 u32 GetLocationAddress() const { return ref().m_LocationAddress; } in NW_RES_CTOR() 521 void SetLocationAddress(u32 address) { ref().m_LocationAddress = address; } in SetLocationAddress() 522 …void SetLocationAddress(const void* address) { ref().m_LocationAddress = reinterpret_cast<u32>(add… in SetLocationAddress()
|
| D | gfx_ResSceneObject.h | 117 nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } in NW_RES_FIELD_STRUCT_DECL() 168 … bool IsBranchVisible() const { return ref().m_Flags & ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; } in NW_RES_CTOR_INHERIT() 179 ref().m_Flags |= ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; in SetBranchVisible() 183 ref().m_Flags &= ~ResSceneNodeData::FLAG_IS_BRANCH_VISIBLE; in SetBranchVisible()
|
| /NW4C-1.2.23/sources/libraries/gfx/res/ |
| D | gfx_ResMesh.cpp | 72 u32* command = &mesh.ref().m_IrScaleCommand[0]; in ResSeparateDataShape_SetupVertexIrScale() 74 mesh.ref().m_Flags &= ~(ResMesh::FLAG_HAS_VERTEX_ALPHA | ResMesh::FLAG_HAS_BONE_WEIGHT_W); in ResSeparateDataShape_SetupVertexIrScale() 75 std::memset(command, 0, sizeof(mesh.ref().m_IrScaleCommand)); in ResSeparateDataShape_SetupVertexIrScale() 126 mesh.ref().m_Flags |= ResMesh::FLAG_HAS_VERTEX_ALPHA; in ResSeparateDataShape_SetupVertexIrScale() 130 mesh.ref().m_Flags |= ResMesh::FLAG_HAS_BONE_WEIGHT_W; in ResSeparateDataShape_SetupVertexIrScale() 146 if ( ref().m_ActivateCommandCache != NULL ) in Setup() 187 ref().m_ActivateCommandCache = builder.AllocAndCopy(); in Setup() 188 ref().m_ActivateCommandCacheSize = activateCommandSize; in Setup() 190 …ref().m_DeactivateCommandCache = nw::ut::AddOffsetToPtr( ref().m_ActivateCommandCache, activateCom… in Setup() 191 ref().m_DeactivateCommandCacheSize = deactivateCommandSize; in Setup() [all …]
|
| D | gfx_ResShader.cpp | 46 switch ( this->ref().typeInfo ) in Dereference() 75 switch ( this->ref().typeInfo ) in Dereference() 106 switch ( this->ref().typeInfo ) in Setup() 150 …resBinaryShader.ref().m_ShaderBinaryInfo = new(binaryAnalyzerBuffer) ShaderBinaryInfo( resBinarySh… in ResBinaryShader_Setup() 165 resBinaryShader.ref().m_CommandCache = builder.AllocAndCopy(); in ResBinaryShader_Setup() 166 resBinaryShader.ref().m_CommandCacheSize = builder.GetSize(); in ResBinaryShader_Setup() 230 if ( resBinaryShader.ref().m_CommandCache != NULL ) in Cleanup() 232 CommandCacheManager::Free( resBinaryShader.ref().m_CommandCache ); in Cleanup() 233 resBinaryShader.ref().m_CommandCache = NULL; in Cleanup() 234 resBinaryShader.ref().m_CommandCacheSize = 0; in Cleanup() [all …]
|
| D | gfx_ResVertex.cpp | 61 resStream.ref().m_MemoryArea = area; in BufferData() 72 resStream.ref().m_MemoryArea = NN_GX_MEM_FCRAM; in BufferData() 89 GLuint area = resStream.ref().m_MemoryArea; in DeleteBuffer() 156 if (ref().m_BufferObject) in Setup() 163 this->ref().m_BufferObject = bufferID; in Setup() 168 ref().m_MemoryArea = ResVertexStreamBaseData::AREA_NO_MALLOC; in Setup() 205 if (ref().m_BufferObject) in Setup() 211 this->ref().m_BufferObject = bufferID; in Setup() 216 ref().m_MemoryArea = ResVertexStreamBaseData::AREA_NO_MALLOC; in Setup()
|
| D | gfx_ResTextureMapper.cpp | 110 switch ( resImageTexture.ref().typeInfo ) in ResPixelBasedTextureMapper_Setup() 191 new(mapperMemory) ResPixelBasedTextureMapperData(resPixelBasedTextureMapper.ref()); in ResPixelBasedTextureMapper_CloneDynamic() 224 new(samplerMemory) ResStandardTextureSamplerData(resStandardTextureSampler.ref()); in ResPixelBasedTextureMapper_CloneDynamic() 254 new(mapperMemory) ResProceduralTextureMapperData(resProceduralTextureMapper.ref()); in ResProceduralTextureMapper_CloneDynamic() 291 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic() 296 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic() 316 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic() 328 switch ( this->ref().typeInfo ) in CloneDynamic() 348 resTextureMapper.ref().m_DynamicAllocator = allocator; in CloneDynamic() 360 switch ( this->ref().typeInfo ) in GetMemorySizeForCloneInternal() [all …]
|
| D | gfx_ResShape.cpp | 89 resStream.ref().m_MemoryArea = area; in BufferData() 100 resStream.ref().m_MemoryArea = NN_GX_MEM_FCRAM; in BufferData() 123 GLuint area = resStream.ref().m_MemoryArea; in DeleteBuffer() 139 switch ( this->ref().typeInfo ) in Setup() 266 resStream.ref().m_MemoryArea = ResIndexStreamData::AREA_NO_MALLOC; in Setup() 292 switch ( this->ref().typeInfo ) in Cleanup() 376 if (resStream.IsValid() && resStream.ref().m_CommandCache) in Cleanup() 378 CommandCacheManager::Free(resStream.ref().m_CommandCache); in Cleanup() 379 resStream.ref().m_CommandCache = NULL; in Cleanup() 380 resStream.ref().m_CommandCacheSize = 0; in Cleanup()
|
| D | gfx_ResUtil.cpp | 68 referenceLut.ref().toTargetLut.set_ptr(resLut.ptr()); in GetReferenceLutTarget() 95 referenceTexture.ref().toTargetTexture.set_ptr(referenceResult.first.ptr()); in GetReferenceTextureTarget() 101 referenceTexture.ref().toTargetTexture.set_ptr(resTexture.ptr()); in GetReferenceTextureTarget() 128 referenceShader.ref().toTargetShader.set_ptr(referenceResult.first.ptr()); in GetReferenceShaderTarget() 134 referenceShader.ref().toTargetShader.set_ptr(resShader.ptr()); in GetReferenceShaderTarget()
|
| /NW4C-1.2.23/sources/libraries/ut/ |
| D | ut_ResDictionary.cpp | 29 const ResDicLinearData::ResDicNodeData* x = ref().data; in GetIndex() 31 for ( int i = 0; i < s32(ref().numData); ++i ) in GetIndex() 48 const ResDataType& r = ref(); in Get() 56 while(p->ref > x->ref) in Get() 61 u32 wd = u32(x->ref) >> 3; in Get() 62 u32 pos = u32(x->ref) & 7; in Get() 86 const ResDataType& r = this->ref(); in Get() 91 while(p->ref > x->ref) in Get() 96 u32 wd = u32(x->ref) >> 3; in Get() 97 u32 pos = u32(x->ref) & 7; in Get()
|
| /NW4C-1.2.23/sources/libraries/gfx/ |
| D | gfx_ShaderProgram.cpp | 102 NW_NULL_ASSERT( shader.ref().m_CommandCache ); in ActivateDescription() 103 internal::NWUseCmdlist( shader.ref().m_CommandCache, shader.ref().m_CommandCacheSize ); in ActivateDescription() 106 NW_NULL_ASSERT( shaderProgramDescription.ref().m_CommandCache ); in ActivateDescription() 107 …internal::NWUseCmdlist( shaderProgramDescription.ref().m_CommandCache, shaderProgramDescription.re… in ActivateDescription()
|
| D | gfx_AnimHelper.cpp | 60 …return reinterpret_cast<ResTextureSamplerData*>(resMat.GetTextureMappers(0).ref().toSampler.to_ptr… in GetBaseObject() 64 …return reinterpret_cast<ResTextureSamplerData*>(resMat.GetTextureMappers(1).ref().toSampler.to_ptr… in GetBaseObject() 68 …return reinterpret_cast<ResTextureSamplerData*>(resMat.GetTextureMappers(2).ref().toSampler.to_ptr… in GetBaseObject()
|
| D | gfx_RenderContext.cpp | 435 NW_NULL_ASSERT( mesh.ref().m_ActivateCommandCache ); in ActivateVertexAttribute() 443 …internal::NWUseCmdlist( mesh.ref().m_ActivateCommandCache, mesh.ref().m_ActivateCommandCacheSize ); in ActivateVertexAttribute() 444 internal::NWUseCmdlist( mesh.ref().m_IrScaleCommand, sizeof(mesh.ref().m_IrScaleCommand) ); in ActivateVertexAttribute() 448 … const bool hasVertexAlpha = (mesh.ref().m_Flags & ResMesh::FLAG_HAS_VERTEX_ALPHA) ? true : false; in ActivateVertexAttribute() 449 … const bool hasBoneWeightW = (mesh.ref().m_Flags & ResMesh::FLAG_HAS_BONE_WEIGHT_W) ? true : false; in ActivateVertexAttribute() 666 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight() 667 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight() 700 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight() 701 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight() 903 if (indexStream.ref().m_CommandCache) in RenderPrimitive() [all …]
|
| /NW4C-1.2.23/include/nw/anim/res/ |
| D | anim_ResAnim.h | 609 if ( ref().m_Flags & (hasNoCurveFlag) ) \ 615 return reinterpret_cast<const type*>( ref().to##name.to_ptr() ); \ 621 if ( ref().m_Flags & (hasNoCurveFlag) ) \ 627 return reinterpret_cast<type*>( ref().to##name.to_ptr() ); \ 635 if ( ref().m_Flags & (constantFlag) ) \ 637 return ref().constantValue##name; \ 642 reinterpret_cast<const ResFloatCurveData*>( ref().to##name.to_ptr() ), \ 651 if ( ref().m_Flags & (constantFlag) ) \ 653 return ref().constantValue##name; \ 658 reinterpret_cast<const ResIntCurveData*>( ref().to##name.to_ptr() ), \ [all …]
|
| /NW4C-1.2.23/include/nw/gfx/ |
| D | gfx_MaterialState.h | 351 …internal::NWUseCmdlist<sizeof(depthOperation.ref().m_CommandBuffer)>( &depthOperation.ref().m_Comm… in ActivateDepthOperation() 375 …internal::NWUseCmdlist<sizeof(stencilOperation.ref().m_CommandBuffer)>( &stencilOperation.ref().m_… in ActivateStencilOperation() 397 …internal::NWUseCmdlist<sizeof(blendOperation.ref().m_CommandBuffer)>(blendOperation.ref().m_Comman… in ActivateBlendOperation() 599 …internal::NWUseCmdlist<sizeof(rasterization.ref().m_CommandBuffer)>( rasterization.ref().m_Command… in ActivateRasterization() 788 …internal::NWUseCmdlist<sizeof(fragmentShader.ref().m_BufferCommand)>(&(fragmentShader.ref().m_Buff… in ActivateTextureCombiners() 803 …al::NWUseCmdlist<sizeof(textureCombiner.ref().m_CommandBuffer)>( reinterpret_cast<const u32*>(text… in ActivateTextureCombiners() 818 …internal::NWUseCmdlist<sizeof(alphaTest.ref().m_CommandBuffer)>( &alphaTest.ref().m_CommandBuffer[… in ActivateAlphaTest()
|
| /NW4C-1.2.23/include/nw/snd/ |
| D | snd_Util.h | 230 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItem() local 231 if ( ref == NULL ) return NULL; in GetReferedItem() 232 if ( ref->offset == 0 ) return NULL; in GetReferedItem() 233 return ut::AddOffsetToPtr( origin, ref->offset ); in GetReferedItem() 237 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItemSize() local 238 if ( ref == NULL ) return 0; in GetReferedItemSize() 239 return ref->size; in GetReferedItemSize() 243 const ReferenceWithSize* ref = GetReference( typeId, count ); in GetReferedItemOffset() local 244 if ( ref == NULL ) return 0; in GetReferedItemOffset() 245 return ref->offset; in GetReferedItemOffset()
|
| /NW4C-1.2.23/sources/libraries/snd/ |
| D | snd_BankFile.cpp | 114 const Util::Reference& ref = GetRegionTableAddress( regionTableIndex ); in GetRegion() local 115 return ut::AddOffsetToPtr( this, ref.offset ); in GetRegion() 247 const Util::Reference& ref = table.item[ programNo ]; in GetInstrument() local 249 switch ( ref.typeId ) in GetInstrument() 367 const Util::Reference& ref = *reinterpret_cast<const Util::Reference*>( in GetAdshrCurve() local 370 ut::AddOffsetToPtr( &ref, ref.offset ) ); in GetAdshrCurve()
|